Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace deprecated github action #940

Merged
merged 1 commit into from
Feb 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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