• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: PR
2on:
3  pull_request:
4
5jobs:
6
7  test:
8    name: Test
9    runs-on: ubuntu-latest
10    strategy:
11      matrix:
12        rust: [1.8.0, stable]
13    steps:
14      - name: Rust install
15        uses: actions-rs/toolchain@v1
16        with:
17          toolchain: ${{ matrix.rust }}
18          profile: minimal
19          override: true
20      - name: Checkout
21        uses: actions/checkout@v2
22      - name: Build
23        uses: actions-rs/cargo@v1
24        with:
25          command: build
26      - name: Test
27        run: ./ci/test_full.sh
28
29  fmt:
30    name: Format
31    runs-on: ubuntu-latest
32    steps:
33      - name: Rust install
34        uses: actions-rs/toolchain@v1
35        with:
36          toolchain: 1.42.0
37          profile: minimal
38          override: true
39          components: rustfmt
40      - name: Checkout
41        uses: actions/checkout@v2
42      - name: Check formatting
43        uses: actions-rs/cargo@v1
44        with:
45          command: fmt
46          args: --all -- --check
47