chore(deps): bump @polkadot/util from 14.0.1 to 14.0.2 in the polkadot group #2707
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'CI' | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| branches: [main] | |
| workflow_dispatch: | |
| env: | |
| BINARYEN_VERSION: version_111 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Install Node.js 20.x' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: 'Install dependencies' | |
| run: yarn install | |
| - name: 'Build idea/frontend deps' | |
| run: yarn build:gear-api && yarn build:utils && yarn build:vara-eth-api | |
| - name: 'Run linter' | |
| run: yarn lint | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Install Node.js 20.x' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: 'Install dependencies' | |
| run: yarn install | |
| - name: 'Build all packages' | |
| run: yarn build | |
| test-gear-api: | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'S1-skip-gear-api-tests') }} | |
| runs-on: ubuntu-22.04 | |
| env: | |
| RUSTUP_HOME: /tmp/rustup_home | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Install: NodeJS 20.x' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: clippy, rustfmt, llvm-tools, rust-src | |
| - name: 'Install: binaryen' | |
| run: | | |
| wget -c https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN_VERSION/binaryen-$BINARYEN_VERSION-x86_64-linux.tar.gz -O - | tar -xz -C . | |
| sudo cp binaryen-$BINARYEN_VERSION/bin/wasm-opt /usr/bin/ | |
| - name: "Install: Foundry" | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: 'Install dependencies' | |
| run: yarn workspaces focus gear-js @gear-js/api | |
| - name: 'Prepare: build programs' | |
| run: cargo build --release | |
| - name: 'Prepare: download Gear node' | |
| run: | | |
| wget -O ./gear https://github.com/gear-tech/gear/releases/download/build/gear | |
| chmod +x gear | |
| - name: 'Prepare: run Gear node' | |
| run: | | |
| nohup ./gear --dev --execution=wasm --tmp --unsafe-rpc-external --rpc-methods Unsafe --rpc-cors all & | |
| - name: 'Prepare: sleep 3 min' | |
| run: sleep 180 | |
| - name: 'Test: run' | |
| run: yarn test:gear-api | |
| env: | |
| SKIP_RUN_NODE: true | |
| SKIP_BUILD: true | |
| test-varaeth-api: | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'S0-skip-varaeth-tests') }} | |
| runs-on: ubuntu-22.04 | |
| env: | |
| RUSTUP_HOME: /tmp/rustup_home | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Check if vara-eth files changed' | |
| id: changed-vara-eth | |
| uses: tj-actions/changed-files@v47 | |
| with: | |
| files: | | |
| apis/vara-eth/** | |
| - name: 'Install: NodeJS 24.x' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| - name: Set up Rust | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: clippy, rustfmt, llvm-tools, rust-src | |
| - name: 'Install: binaryen' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| run: | | |
| wget -c https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN_VERSION/binaryen-$BINARYEN_VERSION-x86_64-linux.tar.gz -O - | tar -xz -C . | |
| sudo cp binaryen-$BINARYEN_VERSION/bin/wasm-opt /usr/bin/ | |
| - name: 'Install: Foundry' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: v1.5.0-rc1 | |
| - name: 'Install dependencies' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| run: yarn workspaces focus gear-js @vara-eth/api | |
| - name: 'Download ethexe bin from gear releases' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| working-directory: apis/vara-eth | |
| run: | | |
| wget -O ./ethexe https://github.com/gear-tech/gear/releases/download/build/ethexe | |
| chmod +x ethexe | |
| - name: 'Build programs' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| working-directory: apis/vara-eth | |
| run: cargo b -r | |
| - name: 'Compile contracts' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| working-directory: apis/vara-eth | |
| run: forge compile | |
| - name: 'Test: run' | |
| if: steps.changed-vara-eth.outputs.any_changed == 'true' | |
| working-directory: apis/vara-eth | |
| run: yarn test | |
| env: | |
| PATH_TO_ETHEXE: ./ethexe | |
| check-gear-idea-version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Install: NodeJS 20.x' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: 'Install dependencies' | |
| run: yarn workspaces focus gear-js | |
| - name: 'Check' | |
| run: yarn check:gear-idea-version | |
| test-gear-idea-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: Install NodeJS 20.x | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: 'Install dependencies' | |
| run: yarn install | |
| - name: 'Build' | |
| run: | | |
| yarn build:gear-api | |
| yarn build:gear-idea-backend | |
| - name: 'Run tests' | |
| timeout-minutes: 3 | |
| run: yarn test:gear-idea-backend | |
| test-ui: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: Install NodeJS 20.x | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: 'Install dependencies' | |
| run: yarn install | |
| - name: 'Build @gear-js/frontend-configs' | |
| run: yarn build:frontend-configs | |
| - name: 'gear-ui: Run tests' | |
| run: yarn test:ui | |
| test-txwrapper: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Install: NodeJS 20.x' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: 'Install dependencies' | |
| run: yarn install | |
| - name: 'Test: run' | |
| run: yarn test:txwrapper | |
| test-util: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| RUSTUP_HOME: /tmp/rustup_home | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Install: NodeJS 20.x' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: 'Install dependencies' | |
| run: yarn workspaces focus gear-js-util gear-js | |
| - name: 'Test: run' | |
| run: yarn test:gear-js-util | |
| check-dockerfiles: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'Check for changed Dockerfiles' | |
| id: changed-dockerfiles | |
| uses: tj-actions/changed-files@v47 | |
| with: | |
| files: | | |
| **/Dockerfile | |
| - name: 'Build changed Dockerfiles' | |
| if: steps.changed-dockerfiles.outputs.any_changed == 'true' | |
| run: | | |
| for dockerfile in ${{ steps.changed-dockerfiles.outputs.all_changed_files }}; do | |
| echo "Building $dockerfile" | |
| docker build -f "$dockerfile" . | |
| done |