diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f58dbe4..404110f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,20 +19,37 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 + - name: Install Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.85.0 + components: clippy, rustfmt + rustflags: "" + cache-shared-key: linux-ci + cache-save-if: ${{ github.ref == 'refs/heads/main' }} + cache-on-failure: false - name: Format run: cargo fmt --all --check - name: Clippy - run: cargo clippy --all-targets -- -D warnings + run: cargo clippy --locked --all-targets -- -D warnings - name: Tests - run: cargo test --workspace + run: cargo test --locked --workspace conformance: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 + - name: Install Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.85.0 + rustflags: "" + cache-shared-key: linux-ci + cache-save-if: false + cache-on-failure: false - name: Build runner and mock provider - run: cargo build --release --bin lpp-mock-provider --bin lpp-conformance-runner + run: cargo build --locked --bin lpp-mock-provider --bin lpp-conformance-runner - name: Validate fixture structure - run: ./target/release/lpp-conformance-runner --validate-only --fixtures conformance/fixtures/v1 + run: ./target/debug/lpp-conformance-runner --validate-only --fixtures conformance/fixtures/v1 - name: Run conformance against the mock provider - run: ./target/release/lpp-conformance-runner --provider ./target/release/lpp-mock-provider --fixtures conformance/fixtures/v1 + run: ./target/debug/lpp-conformance-runner --provider ./target/debug/lpp-mock-provider --fixtures conformance/fixtures/v1