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
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install nix
uses: cachix/install-nix-action@v18
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
- name: Run tests
run: nix develop --command cargo test
lints:
name: Lints