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.0.0, stable] 13 steps: 14 - name: Checkout 15 uses: actions/checkout@v2 16 - name: Install 17 uses: actions-rs/toolchain@v1 18 with: 19 toolchain: ${{ matrix.rust }} 20 profile: minimal 21 override: true 22 - name: Build 23 uses: actions-rs/cargo@v1 24 with: 25 command: build 26 args: --verbose 27 - name: Test 28 uses: actions-rs/cargo@v1 29 with: 30 command: test 31 args: --verbose 32 33 fmt: 34 name: Format 35 runs-on: ubuntu-latest 36 steps: 37 - name: Checkout 38 uses: actions/checkout@v2 39 - name: Install 40 uses: actions-rs/toolchain@v1 41 with: 42 profile: minimal 43 toolchain: 1.58.1 44 override: true 45 components: rustfmt 46 - name: Check formatting 47 uses: actions-rs/cargo@v1 48 with: 49 command: fmt 50 args: --all -- --check 51