Use Nix to run cargo test in CI

Using Nix ensures that known versions of all external
dependencies (e.g. `poppler`) are available when running the tests.
This commit is contained in:
Joseph LaFreniere 2023-04-23 21:22:56 -05:00
parent 89d57cf094
commit aec142cd89
No known key found for this signature in database
GPG Key ID: EE236AA0141EFCA3

View File

@ -35,17 +35,11 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install stable toolchain - name: Install nix
uses: actions-rs/toolchain@v1 uses: cachix/install-nix-action@v18
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test - name: Run tests
uses: actions-rs/cargo@v1 run: nix develop --command cargo test
with:
command: test
lints: lints:
name: Lints name: Lints