mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 04:14:57 +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
|
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user