• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2name: CI
3on: [push, pull_request]
4jobs:
5  test:
6    name: Test
7    runs-on: ubuntu-latest
8    strategy:
9      fail-fast: false
10      matrix:
11        rust: [1.56.1, stable, beta, nightly]
12    steps:
13    - name: Checkout
14      uses: actions/checkout@v2
15    - name: Install rust
16      uses: actions-rs/toolchain@v1
17      with:
18        toolchain: ${{ matrix.rust }}
19        profile: minimal
20        override: true
21    - uses: actions-rs/cargo@v1
22      with:
23        command: test
24    - if: matrix.rust == 'nightly'
25      uses: actions-rs/cargo@v1
26      with:
27        command: test
28        args: --features nightly
29  fmt:
30    name: Rustfmt
31    runs-on: ubuntu-latest
32    steps:
33      - uses: actions/checkout@v2
34      - uses: actions-rs/toolchain@v1
35        with:
36          profile: minimal
37          toolchain: stable
38          override: true
39      - run: rustup component add rustfmt
40      - uses: actions-rs/cargo@v1
41        with:
42          command: fmt
43          args: -- --check
44  miri:
45    name: Miri
46    runs-on: ubuntu-latest
47    steps:
48      - uses: actions/checkout@v2
49      - uses: actions-rs/toolchain@v1
50        with:
51          profile: minimal
52          toolchain: nightly
53          override: true
54      - run: rustup component add miri
55      - run: cargo miri test --verbose --all-features