diff options
Diffstat (limited to '.github/workflows/msrv.yml')
-rw-r--r-- | .github/workflows/msrv.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index 3ec7270..95f1e0a 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -137,3 +137,30 @@ jobs: with: command: clippy args: -- -D warnings + + check-examples: + name: Check examples + needs: [check] + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.46.0 + - stable + + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + args: --examples + |