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

Use the MSRV lockfile for MSRV tests #115

Merged
merged 2 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
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
17 changes: 13 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
toolchain: ${{ env.MSRV }}
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Prepare MSRV lockfile
run: cp ci/Cargo.lock.msrv Cargo.lock
- name: Run cargo check
run: cargo +$MSRV check --all-targets
run: cargo +$MSRV check --all-targets --locked

fmt:
name: Check formatting
Expand Down Expand Up @@ -74,8 +76,10 @@ jobs:
components: clippy
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Prepare MSRV lockfile
run: cp ci/Cargo.lock.msrv Cargo.lock
- name: Run clippy
run: cargo +$MSRV clippy --all-targets --all-features -- -D warnings
run: cargo +$MSRV clippy --all-targets --all-features --locked -- -D warnings

unit-tests:
name: Run unit tests
Expand All @@ -98,6 +102,9 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Prepare MSRV lockfile
run: cp ci/Cargo.lock.msrv Cargo.lock
if: matrix.rust == '1.60.0'
- name: Run unit tests
run: cargo +${{ matrix.rust }} nextest run --lib --all-features

Expand All @@ -121,8 +128,10 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Prepare MSRV lockfile
run: cp ci/Cargo.lock.msrv Cargo.lock
- name: Run integration tests
run: env NEO4J_VERSION_TAG=${{ matrix.neo4j }} cargo +$MSRV nextest run --all-features
run: env NEO4J_VERSION_TAG=${{ matrix.neo4j }} cargo +$MSRV nextest run --all-features --locked

msrv:
name: Validate MSRV and minimal dependency versions
Expand All @@ -149,7 +158,7 @@ jobs:
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Run ${{ matrix.name }} unit tests
run: cargo +$MSRV nextest run --lib --all-features
run: cargo +$MSRV nextest run --lib --all-features --locked

release:
name: Release
Expand Down
2 changes: 1 addition & 1 deletion ci/Cargo.lock.min

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

2 changes: 1 addition & 1 deletion ci/Cargo.lock.msrv

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