Skip to content

Commit

Permalink
feat: applying some builds only on merge to main
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende committed Jan 11, 2025
1 parent 5030e42 commit 2394860
Show file tree
Hide file tree
Showing 17 changed files with 5,832 additions and 6,575 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,33 @@ env:
YARN_ENABLE_HARDENED_MODE: 0

jobs:
# Running yarn install in hardened mode here makes it safe to run the other
# jobs without hardened mode, which is good because hardened mode is slow.
# https://yarnpkg.com/features/security#hardened-mode
check-yarn-lock-poisoning:
name: Check for yarn.lock poisoning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check if yarn.lock changed
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
lockfile:
- "yarn.lock"
- name: Check yarn.lock for lockfile poisoning
if: steps.filter.outputs.lockfile == 'true'
uses: ./.github/actions/yarn-cache
env:
YARN_ENABLE_HARDENED_MODE: 1

lint:
name: Lint
needs: check-yarn-lock-poisoning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -22,6 +47,7 @@ jobs:

unit-tests-js:
name: JS unit tests
needs: check-yarn-lock-poisoning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -47,6 +73,7 @@ jobs:

unit-tests-wasm:
name: WASM unit tests
needs: check-yarn-lock-poisoning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -72,6 +99,7 @@ jobs:

build-interface:
name: Build Namadillo
needs: check-yarn-lock-poisoning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -80,24 +108,17 @@ jobs:
- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache

- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: build

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: build the site
working-directory: ./apps/namadillo
run: yarn build
run: yarn build:only
env:
NAMADA_INTERFACE_NAMADA_ALIAS: "Namada Devnet"
NAMADA_INTERFACE_NAMADA_CHAIN_ID: "internal-devnet-6be.86067e06a5"
NAMADA_INTERFACE_NAMADA_URL: "https://proxy.heliax.click/internal-devnet-6be.86067e06a5"

build-extension-chrome:
name: Build Chrome extension
build-extension:
name: Build Extension
needs: check-yarn-lock-poisoning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -122,32 +143,6 @@ jobs:
working-directory: ./apps/extension
run: yarn build:chrome

build-extension-firefox:
name: Build Firefox extension
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache

- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: build

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: Build WASM dependencies
working-directory: ./apps/extension
run: yarn wasm:build

- name: Build the extension
working-directory: ./apps/extension
run: yarn build:firefox

E2E-tests:
if: false
name: E2E tests
Expand Down Expand Up @@ -182,27 +177,3 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30

# Running yarn install in hardened mode here makes it safe to run the other
# jobs without hardened mode, which is good because hardened mode is slow.
# https://yarnpkg.com/features/security#hardened-mode
check-yarn-lock-poisoning:
name: Check for yarn.lock poisoning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check if yarn.lock changed
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
lockfile:
- "yarn.lock"
- name: Check yarn.lock for lockfile poisoning
if: steps.filter.outputs.lockfile == 'true'
uses: ./.github/actions/yarn-cache
env:
YARN_ENABLE_HARDENED_MODE: 1
4 changes: 0 additions & 4 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"license": "MIT",
"private": true,
"scripts": {
"bump": "yarn workspace namada run bump --target apps/extension",
"release": "release-it --verbose --ci",
"release:dry-run": "release-it --verbose --dry-run --ci",
"release:no-npm": "release-it --verbose --no-npm.publish --ci",
"watch": "webpack-cli --watch",
"clean": "rimraf ./build",
"clean:chrome": "rimraf ./build/chrome",
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
},
"devDependencies": {
"@chain-registry/types": "^0.45.80",
"@release-it/conventional-changelog": "^8.0.1",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"eslint": "^8.57.0",
Expand All @@ -32,7 +31,6 @@
"lint-staged": "^15.2.0",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^3.2.4",
"release-it": "^17.0.1",
"stream-browserify": "^3.0.0",
"typescript": "^5.5.4",
"vite-plugin-checker": "^0.6.4",
Expand Down
5 changes: 1 addition & 4 deletions packages/chains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
"scripts": {
"bump": "yarn workspace namada run bump --target packages/chains",
"prepublish": "yarn && yarn build",
"build": "npx rimraf ./dist && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci"
"build": "npx rimraf ./dist && tsc --build"
},
"devDependencies": {
"eslint": "^8.57.0",
Expand Down
3 changes: 0 additions & 3 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"bump": "yarn workspace namada run bump --target packages/components",
"prepublish": "yarn && yarn build",
"build": "npx rimraf ./dist && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "yarn lint -- --fix",
"lint:ci": "yarn lint --max-warnings 0"
Expand Down
3 changes: 0 additions & 3 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"scripts": {
"prepublish": "yarn && yarn build",
"build": "yarn wasm:build && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci",
"wasm:build": "./scripts/build.sh --release",
"wasm:build:dev": "./scripts/build.sh",
"wasm:build:node": "./scripts/build-node.sh --release",
Expand Down
3 changes: 0 additions & 3 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"bump": "yarn workspace namada run bump --target packages/hooks",
"prepublish": "yarn && yarn build",
"build": "rimraf ./dist && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "yarn lint -- --fix",
"lint:ci": "yarn lint --max-warnings 0"
Expand Down
3 changes: 0 additions & 3 deletions packages/integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"bump": "yarn workspace namada run bump --target packages/integrations",
"prepublish": "yarn && yarn build",
"build": "npx rimraf ./dist && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci",
"test": "jest",
"test:watch": "jest --watchAll",
"test:ci": "jest",
Expand Down
5 changes: 0 additions & 5 deletions packages/sdk/.release-it.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
},
"scripts": {
"prepublish": "yarn workspaces focus @namada/sdk && yarn build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci",
"prebuild": "rimraf ./dist",
"wasm:node:cp": "cp -r ../shared/src/shared/*.wasm ./dist/node/shared/src/shared && cp -r ../crypto/src/crypto/*.wasm ./dist/node/crypto/src/crypto",
"wasm:web:cp": "cp -r ../shared/src/shared/*.wasm ./dist && cp -r ../crypto/src/crypto/*.wasm ./dist",
Expand Down Expand Up @@ -77,7 +74,6 @@
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@release-it/conventional-changelog": "^8.0.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.4",
"babel-jest": "^29.0.3",
Expand All @@ -92,7 +88,6 @@
"jest-create-mock-instance": "^2.0.0",
"jest-mock-server": "^0.1.0",
"jsdoc-babel": "^0.5.0",
"release-it": "^17.0.1",
"rimraf": "^5.0.5",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"license": "MIT",
"scripts": {
"prepublish": "yarn wasm:build && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci",
"wasm:ts:node": "tsc -p tsconfig.node.json",
"wasm:ts:web": "tsc -p tsconfig.web.json",
"wasm:build": "yarn wasm:ts:web && node ./scripts/build.js --release",
Expand All @@ -32,12 +29,10 @@
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.18.6",
"@release-it/conventional-changelog": "^8.0.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.4",
"babel-jest": "^29.0.3",
"jest": "^29.7.0",
"release-it": "^17.0.1",
"rimraf": "^5.0.5",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.1",
Expand Down
3 changes: 0 additions & 3 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"scripts": {
"prepublish": "yarn && yarn build",
"build": "npx rimraf ./dist && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci",
"lint": "eslint src --ext .ts",
"lint:fix": "yarn lint -- --fix",
"lint:ci": "yarn lint --max-warnings 0"
Expand Down
5 changes: 0 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"prepublish": "yarn && yarn build",
"build": "rimraf ./dist && tsc --build",
"build:docs": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish",
"lint": "eslint src --ext .ts",
"lint:fix": "yarn lint -- --fix",
"lint:ci": "yarn lint --max-warnings 0"
Expand All @@ -25,14 +22,12 @@
},
"devDependencies": {
"@babel/preset-env": "^7.23.8",
"@release-it/conventional-changelog": "^8.0.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-react": "^7.35.2",
"eslint-plugin-react-hooks": "^4.6.0",
"release-it": "^17.0.1",
"rimraf": "^5.0.5",
"typedoc": "^0.25.12",
"typedoc-plugin-markdown": "^3.17.1",
Expand Down
5 changes: 2 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"scripts": {
"prepublish": "yarn && yarn build",
"build": "npx rimraf ./dist && tsc --build",
"release": "yarn prepublish && release-it --verbose --ci",
"release:dry-run": "yarn prepublish && release-it --verbose --dry-run --ci",
"release:no-npm": "yarn prepublish && release-it --verbose --no-npm.publish --ci",
"lint": "eslint src --ext .ts",
"lint:fix": "yarn lint -- --fix",
"lint:ci": "yarn lint --max-warnings 0"
Expand All @@ -24,6 +21,8 @@
"crypto-js": "^4.1.1",
"date-fns": "^3.6.0",
"luxon": "^3.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sha.js": "^2.4.11",
"styled-components": "^5.3.5"
},
Expand Down
Binary file modified storybook/.yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 2394860

Please sign in to comment.