Skip to content

build(deps-dev): bump @polkadot/api from 15.10.2 to 16.2.2 #194

build(deps-dev): bump @polkadot/api from 15.10.2 to 16.2.2

build(deps-dev): bump @polkadot/api from 15.10.2 to 16.2.2 #194

Workflow file for this run

name: "[js] CI"
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
branches: [master]
paths:
- "js/**"
- "package.json"
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Cancel previous workflow runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v4
- name: "Install: NodeJS 20.x"
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: "Install: dependencies"
run: yarn install
- name: "Run linter"
run: yarn lint
test:
runs-on: ubuntu-22.04
steps:
- name: Cancel previous workflow runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v4
- name: "Install: NodeJS 20.x"
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: "Install: dependencies"
run: yarn install
- name: "Build"
run: yarn build
- 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