-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (25 loc) · 872 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Test
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Test no defualt features
run: |
nix develop -c cargo run --no-default-features --example instance
nix develop -c cargo run --no-default-features --example diff
nix develop -c cargo run --no-default-features --example json
nix develop -c cargo run --no-default-features --example rename-patch-struct
nix develop -c cargo test --no-default-features
- name: Test with default features
run: |
nix develop -c cargo run --example status
nix develop -c cargo test