@@ -3,15 +3,15 @@ name: Test
3
3
on :
4
4
push :
5
5
branches :
6
- - master
7
- - staging
8
- - trying
6
+ - master
7
+ - staging
8
+ - trying
9
9
pull_request :
10
10
paths :
11
- - ' **.rs'
12
- - ' **/Cargo.*'
13
- - ' .github/workflows/**.yml'
14
- - ' salsa-2022- tests/tests/ compile-fail/**.stderr'
11
+ - " **.rs"
12
+ - " **/Cargo.*"
13
+ - " .github/workflows/**.yml"
14
+ - " tests/compile-fail/**.stderr"
15
15
merge_group :
16
16
17
17
jobs :
@@ -20,52 +20,52 @@ jobs:
20
20
strategy :
21
21
matrix :
22
22
rust :
23
- - stable
24
- - beta
23
+ - stable
24
+ - beta
25
25
experimental :
26
- - false
26
+ - false
27
27
include :
28
- - rust : nightly
29
- experimental : true
28
+ - rust : nightly
29
+ experimental : true
30
30
continue-on-error : ${{ matrix.experimental }}
31
31
runs-on : ubuntu-latest
32
32
steps :
33
- - name : Checkout
34
- uses : actions/checkout@v2
35
- - name : Setup Rust toolchain
36
- uses : actions-rs/toolchain@v1
37
- with :
38
- toolchain : ${{ matrix.rust }}
39
- components : rustfmt, clippy
40
- default : true
41
- - name : Format
42
- uses : actions-rs/cargo@v1
43
- with :
44
- command : fmt
45
- args : -- --check
46
- - name : Clippy
47
- uses : actions-rs/cargo@v1
48
- with :
49
- command : clippy
50
- args : --all-features --all-targets --all
51
- - name : Test
52
- uses : actions-rs/cargo@v1
53
- with :
54
- command : test
55
- args : --all-features --all-targets --all
56
- - name : Test docs
57
- uses : actions-rs/cargo@v1
58
- with :
59
- command : test
60
- args : --doc
61
- - name : Check (without default features)
62
- uses : actions-rs/cargo@v1
63
- with :
64
- command : check
65
- args : --no-default-features
33
+ - name : Checkout
34
+ uses : actions/checkout@v2
35
+ - name : Setup Rust toolchain
36
+ uses : actions-rs/toolchain@v1
37
+ with :
38
+ toolchain : ${{ matrix.rust }}
39
+ components : rustfmt, clippy
40
+ default : true
41
+ - name : Format
42
+ uses : actions-rs/cargo@v1
43
+ with :
44
+ command : fmt
45
+ args : -- --check
46
+ - name : Clippy
47
+ uses : actions-rs/cargo@v1
48
+ with :
49
+ command : clippy
50
+ args : --all-features --all-targets --workspace
51
+ - name : Test
52
+ uses : actions-rs/cargo@v1
53
+ with :
54
+ command : test
55
+ args : --all-features --all-targets --workspace
56
+ - name : Test docs
57
+ uses : actions-rs/cargo@v1
58
+ with :
59
+ command : test
60
+ args : --doc
61
+ - name : Check (without default features)
62
+ uses : actions-rs/cargo@v1
63
+ with :
64
+ command : check
65
+ args : --no-default-features
66
66
67
67
miri :
68
- name : " Miri"
68
+ name : Miri
69
69
runs-on : ubuntu-latest
70
70
steps :
71
71
- uses : actions/checkout@v3
75
75
rustup override set nightly
76
76
cargo miri setup
77
77
- name : Test with Miri
78
- run : cargo miri test --no-fail-fast -p salsa-2022 -p salsa-2022-tests -p calc -p lazy-input
78
+ run : cargo miri test --no-fail-fast
79
+ - name : Run examples with Miri
80
+ run : |
81
+ cargo miri run --example calc
0 commit comments