|
1 | 1 | name: Continuous Integration |
2 | 2 | on: |
3 | | - push: |
4 | | - pull_request: |
5 | | - schedule: |
6 | | - - cron: "0 0 1,15 * *" |
| 3 | + push: |
| 4 | + pull_request: |
| 5 | + schedule: |
| 6 | + - cron: "0 0 1,15 * *" |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - check: |
10 | | - name: Check |
11 | | - runs-on: ubuntu-latest |
12 | | - strategy: |
13 | | - matrix: |
14 | | - rust: |
15 | | - - stable |
16 | | - - nightly |
17 | | - - 1.46.0 # lowest supported version |
18 | | - flags: |
19 | | - - --all-features |
20 | | - - --no-default-features |
21 | | - steps: |
22 | | - - uses: actions/checkout@v2 |
23 | | - - uses: actions-rs/toolchain@v1 |
24 | | - with: |
25 | | - profile: minimal |
26 | | - toolchain: ${{ matrix.rust }} |
27 | | - override: true |
28 | | - - uses: actions-rs/cargo@v1 |
29 | | - with: |
30 | | - command: check |
31 | | - args: ${{ matrix.flags }} |
| 9 | + check: |
| 10 | + name: Check |
| 11 | + runs-on: ubuntu-latest |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + rust: |
| 15 | + - stable |
| 16 | + - nightly |
| 17 | + - 1.56.0 # lowest supported version |
| 18 | + flags: |
| 19 | + - --all-features |
| 20 | + - --no-default-features |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v2 |
| 23 | + - uses: actions-rs/toolchain@v1 |
| 24 | + with: |
| 25 | + profile: minimal |
| 26 | + toolchain: ${{ matrix.rust }} |
| 27 | + override: true |
| 28 | + - uses: actions-rs/cargo@v1 |
| 29 | + with: |
| 30 | + command: check |
| 31 | + args: ${{ matrix.flags }} |
32 | 32 |
|
33 | | - test: |
34 | | - name: Tests |
35 | | - runs-on: ubuntu-latest |
36 | | - strategy: |
37 | | - matrix: |
38 | | - rust: |
39 | | - - stable |
40 | | - - nightly |
41 | | - - 1.46.0 # lowest supported version |
42 | | - steps: |
43 | | - - uses: actions/checkout@v2 |
44 | | - - uses: actions-rs/toolchain@v1 |
45 | | - with: |
46 | | - profile: minimal |
47 | | - toolchain: ${{ matrix.rust }} |
48 | | - override: true |
49 | | - - uses: actions-rs/cargo@v1 |
50 | | - with: |
51 | | - command: test |
52 | | - args: --all-features |
| 33 | + test: |
| 34 | + name: Tests |
| 35 | + runs-on: ubuntu-latest |
| 36 | + strategy: |
| 37 | + matrix: |
| 38 | + rust: |
| 39 | + - stable |
| 40 | + - nightly |
| 41 | + - 1.56.0 # lowest supported version |
| 42 | + steps: |
| 43 | + - uses: actions/checkout@v2 |
| 44 | + - uses: actions-rs/toolchain@v1 |
| 45 | + with: |
| 46 | + profile: minimal |
| 47 | + toolchain: ${{ matrix.rust }} |
| 48 | + override: true |
| 49 | + - uses: actions-rs/cargo@v1 |
| 50 | + with: |
| 51 | + command: test |
| 52 | + args: --all-features |
53 | 53 |
|
54 | | - fmt: |
55 | | - name: Rustfmt |
56 | | - runs-on: ubuntu-latest |
57 | | - steps: |
58 | | - - uses: actions/checkout@v2 |
59 | | - - uses: actions-rs/toolchain@v1 |
60 | | - with: |
61 | | - profile: minimal |
62 | | - toolchain: stable |
63 | | - override: true |
64 | | - components: rustfmt |
65 | | - - uses: actions-rs/cargo@v1 |
66 | | - with: |
67 | | - command: fmt |
68 | | - args: --all -- --check |
| 54 | + fmt: |
| 55 | + name: Rustfmt |
| 56 | + runs-on: ubuntu-latest |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v2 |
| 59 | + - uses: actions-rs/toolchain@v1 |
| 60 | + with: |
| 61 | + profile: minimal |
| 62 | + toolchain: stable |
| 63 | + override: true |
| 64 | + components: rustfmt |
| 65 | + - uses: actions-rs/cargo@v1 |
| 66 | + with: |
| 67 | + command: fmt |
| 68 | + args: --all -- --check |
69 | 69 |
|
70 | | - clippy: |
71 | | - name: Clippy |
72 | | - runs-on: ubuntu-latest |
73 | | - strategy: |
74 | | - matrix: |
75 | | - rust: |
76 | | - - stable |
77 | | - - nightly |
78 | | - steps: |
79 | | - - uses: actions/checkout@v2 |
80 | | - - uses: actions-rs/toolchain@v1 |
81 | | - with: |
82 | | - profile: minimal |
83 | | - toolchain: ${{ matrix.rust }} |
84 | | - override: true |
85 | | - components: clippy |
86 | | - - uses: actions-rs/clippy-check@v1 |
87 | | - with: |
88 | | - name: Clippy-${{ matrix.rust }} |
89 | | - token: ${{ secrets.GITHUB_TOKEN }} |
90 | | - args: --all-features |
91 | | - # miri: |
92 | | - # name: Miri |
93 | | - # runs-on: ubuntu-latest |
94 | | - # steps: |
95 | | - # - uses: actions/checkout@v2 |
96 | | - # - uses: actions-rs/toolchain@v1 |
97 | | - # with: |
98 | | - # profile: minimal |
99 | | - # toolchain: nightly |
100 | | - # override: true |
101 | | - # components: miri |
102 | | - # - name: Run Miri |
103 | | - # run: | |
104 | | - # cargo miri setup |
105 | | - # cargo miri test -- -Zmiri-disable-isolation -- --skip proptest --skip ser_de |
| 70 | + clippy: |
| 71 | + name: Clippy |
| 72 | + runs-on: ubuntu-latest |
| 73 | + strategy: |
| 74 | + matrix: |
| 75 | + rust: |
| 76 | + - stable |
| 77 | + - nightly |
| 78 | + steps: |
| 79 | + - uses: actions/checkout@v2 |
| 80 | + - uses: actions-rs/toolchain@v1 |
| 81 | + with: |
| 82 | + profile: minimal |
| 83 | + toolchain: ${{ matrix.rust }} |
| 84 | + override: true |
| 85 | + components: clippy |
| 86 | + - uses: actions-rs/clippy-check@v1 |
| 87 | + with: |
| 88 | + name: Clippy-${{ matrix.rust }} |
| 89 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 90 | + args: --all-features |
| 91 | + # miri: |
| 92 | + # name: Miri |
| 93 | + # runs-on: ubuntu-latest |
| 94 | + # steps: |
| 95 | + # - uses: actions/checkout@v2 |
| 96 | + # - uses: actions-rs/toolchain@v1 |
| 97 | + # with: |
| 98 | + # profile: minimal |
| 99 | + # toolchain: nightly |
| 100 | + # override: true |
| 101 | + # components: miri |
| 102 | + # - name: Run Miri |
| 103 | + # run: | |
| 104 | + # cargo miri setup |
| 105 | + # cargo miri test -- -Zmiri-disable-isolation -- --skip proptest --skip ser_de |
0 commit comments