Skip to content

Commit

Permalink
Add a test job that uses a fixed Rust version and Cargo.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Oct 24, 2024
1 parent f5d19f4 commit fcd6776
Show file tree
Hide file tree
Showing 3 changed files with 1,138 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,26 @@ jobs:
files: lcov.info
fail_on_error: true

# This is supposed to factor out possible bugs introduced by Rust compiler changes
# and dependency changes, making the results more reproducible.
stable-test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
rust: 1.81.0 # MSRV
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
profile: minimal
override: true
- run: ${{ matrix.deps }}
- run: cargo test --workspace --locked --all-features --target ${{ matrix.target }}

clippy:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/target
Cargo.lock
*.sublime-project
*.sublime-workspace
Loading

0 comments on commit fcd6776

Please sign in to comment.