Skip to content

Commit

Permalink
ci: automate MSRV test
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 15, 2024
1 parent 820e517 commit ba42fb1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,25 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [ nightly, beta, stable, 1.75.0 ]
toolchain: [ nightly, beta, stable ]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
- name: Toolchain ${{matrix.toolchain}}
run: cargo +${{matrix.toolchain}} check --workspace --all-targets --all-features
msrv:
runs-on: ubuntu-latest
steps:
- uses: SebRollen/toml-action@v1.2.0
id: msrv
with:
file: 'Cargo.toml'
field: 'workspace.rust-version'
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{steps.msrv.outputs.value}}
- name: Toolchain ${{steps.msrv.outputs.value}}
run: cargo +${{steps.msrv.outputs.value}} check --workspace --all-targets --all-features
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Test in headless Chrome
run: wasm-pack test --headless --chrome
run: wasm-pack test --headless --chrome commit_verify

0 comments on commit ba42fb1

Please sign in to comment.