Skip to content

Commit

Permalink
Run the in-tree version of cargo-insta in CI (#505)
Browse files Browse the repository at this point in the history
I've been using this approach to test `cargo-insta` locally; would it make a reasonable test for CI too?
  • Loading branch information
max-sixty authored Aug 1, 2024
1 parent 5e9a421 commit 295f90e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ jobs:
- name: Test
run: make test

test-current-cargo-insta:
name: Run the in-tree version of cargo-insta on ourselves
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo run -p cargo-insta -- test

test-stable:
name: Test on 1.61.0
runs-on: ubuntu-latest
Expand Down

0 comments on commit 295f90e

Please sign in to comment.