Skip to content

Commit

Permalink
chore(ci): add tests job for MSRV (1.55.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Jun 19, 2023
1 parent 4f8f985 commit 0188638
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,36 @@ env:
RUST_BACKTRACE: short

jobs:
tests:
tests-msrv-version:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Rust toolchain (minimal supported rust version)
uses: dtolnay/rust-toolchain@1.55.0
- name: print rustc version
run: rustc --version
- name: Run tests
run: |
pushd borsh
cargo test --no-run
cargo test
cargo test --no-default-features
cargo test --all-features
popd
cargo test --workspace
tests-stable:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: print rustc version
run: rustc --version
- name: Run tests
run: |
pushd borsh
Expand Down Expand Up @@ -52,7 +75,7 @@ jobs:

release-plz:
runs-on: ubuntu-latest
needs: [tests, clippy, cargo-fmt]
needs: [tests-stable, tests-msrv-version, clippy, cargo-fmt]
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout repository
Expand Down

0 comments on commit 0188638

Please sign in to comment.