Skip to content

Commit

Permalink
Merge pull request #940 from interlay/gha-cargo
Browse files Browse the repository at this point in the history
chore: replace deprecated github action
  • Loading branch information
gregdhill authored Feb 21, 2023
2 parents 072e657 + 3164ac1 commit 1b61326
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/cargo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,19 @@ jobs:
- name: Set variables
run: |
echo "TOOLCHAIN=$(rustup show active-toolchain | cut -d " " -f1)" >> $GITHUB_ENV
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.TOOLCHAIN }}
- run: rustup component add rustfmt
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: check
uses: actions-rs/cargo@v1
with:
command: check
args: --release --workspace
- name: try-runtime check
uses: actions-rs/cargo@v1
with:
command: check
args: --release --workspace --features try-runtime
- name: test
uses: actions-rs/cargo@v1
with:
command: test
args: --release --workspace --features runtime-benchmarks
components: rustfmt
- name: cargo fmt
run: |
cargo fmt --all -- --check
- name: cargo check
run: |
cargo check --release --workspace
- name: cargo try-runtime check
run: |
cargo check --release --workspace --features try-runtime
- name: cargo test
run: |
cargo test --release --workspace --features runtime-benchmarks

0 comments on commit 1b61326

Please sign in to comment.