Skip to content

Commit

Permalink
Merge pull request #16 from evenfurther/minimal-versions
Browse files Browse the repository at this point in the history
Test with minimal versions of the crates
  • Loading branch information
samueltardieu authored Sep 23, 2023
2 parents dda54e1 + 706b2f3 commit e7fb217
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 112 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ jobs:
- name: Run tests
run: cargo test --release

#test-minimal-versions:
# name: Test with minimal versions
# runs-on: ubuntu-latest
# needs: check
# steps:
# - uses: actions/checkout@v4
# name: Checkout
# - name: Install nightly (for -Z) and stable Rust toolchains
# run: |
# rustup install --profile minimal nightly
# rustup install --profile minimal stable
# rustup default stable
# - name: Set dependencies to the minimal version allowed
# run: cargo +nightly update -Zminimal-versions
# - uses: Swatinem/rust-cache@v2
# - name: Test with minimal version dependencies and stable compiler
# run: cargo +stable test --tests --benches
test-minimal-versions:
name: Test with minimal versions
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v4
name: Checkout
- name: Install nightly (for -Z) and stable Rust toolchains
run: |
rustup install --profile minimal nightly
rustup install --profile minimal stable
rustup default stable
- name: Set dependencies to the minimal version allowed
run: cargo +nightly update -Zminimal-versions
- uses: Swatinem/rust-cache@v2
- name: Test with minimal version dependencies and stable compiler
run: cargo +stable test --tests --benches

fmt:
name: Rustfmt
Expand Down
94 changes: 0 additions & 94 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion aoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ thiserror = "1.0.48"

[dev-dependencies]
insta = "1.32.0"
serial_test = "2.0.0"
serial_test = { version = "2.0.0", default-features = false }
7 changes: 7 additions & 0 deletions aoc/tests/dummy-year/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e7fb217

Please sign in to comment.