mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-08 14:00:37 +00:00
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:
parent
89d57cf094
commit
aec142cd89
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user