-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (45 loc) · 1.95 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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@v4
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Test no default 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 run --no-default-features --example patch-attr
nix develop -c cargo test --no-default-features
- name: Test with std features
run: |
nix develop -c cargo run --features=std --example instance
nix develop -c cargo run --features=std --example diff
nix develop -c cargo run --features=std --example json
nix develop -c cargo run --features=std --example rename-patch-struct
nix develop -c cargo run --features=std --example patch-attr
nix develop -c cargo run --features=std --example option
nix develop -c cargo test --features=std
- name: Test with merge features
run: |
nix develop -c cargo run --features=option --features=merge --example option
nix develop -c cargo run --features=merge --example op
nix develop -c cargo test --features=merge
- name: Test with option features
run: |
nix develop -c cargo run --features=none_as_default --example option
nix develop -c cargo run --features=keep_none --example option
- name: Test with default features
run: |
nix develop -c cargo run --example status
nix develop -c cargo run --example op
nix develop -c cargo test