Skip to content

Commit

Permalink
Update github actions (#2422)
Browse files Browse the repository at this point in the history
* Update github actions

* revert node version

* update codecov/codecov-action@v3

* trigger GitHub actions
  • Loading branch information
zjb0807 authored Nov 29, 2022
1 parent 5628c2b commit 067b65b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 31 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ jobs:
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly-2022-08-05
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
uses: jwlawson/actions-setup-cmake@v1.13
# - name: Install additional dependencies
# run: |
# sudo apt update -y &&
Expand All @@ -64,7 +62,7 @@ jobs:
test-service \
--exclude-files **/mock.rs **/weights.rs **/weights/*
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true # optional (default = false)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extrinsic-ordering-check-from-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extrinsic-ordering-check-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: ${{ env.CHAIN == '' || env.VERSION == '' || env.PREVIOUS_VERSION == '' }}
run: python .github/scripts/extrinsic_check_setup_env.py

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
26 changes: 9 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ jobs:
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly-2022-08-05
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
uses: jwlawson/actions-setup-cmake@v1.13
- name: Check format
run: cargo fmt --all -- --check
- name: Build
Expand All @@ -69,15 +67,13 @@ jobs:
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly-2022-08-05
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
uses: jwlawson/actions-setup-cmake@v1.13
- name: Run benchmarking tests
run: make test-benchmarking
checks-and-tests:
Expand All @@ -91,15 +87,13 @@ jobs:
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly-2022-08-05
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
uses: jwlawson/actions-setup-cmake@v1.13
- name: Run runtime tests
run: make test-runtimes
- name: Run eth tests
Expand All @@ -121,19 +115,17 @@ jobs:
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly-2022-08-05
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
uses: jwlawson/actions-setup-cmake@v1.13
- name: Run e2e tests
run: make test-e2e
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Run ts tests
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test.yml.src
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ jobs:
submodules: recursive
- &toolchain
name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly-2022-08-05
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Check format
run: cargo fmt --all -- --check
- name: Build
Expand Down Expand Up @@ -85,7 +83,7 @@ jobs:
- *checkout
- *toolchain
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Run ts tests
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/update-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ jobs:
submodules: recursive
persist-credentials: false
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: nightly-2022-08-05
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: update tokens
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
Expand Down

0 comments on commit 067b65b

Please sign in to comment.