1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 18:12:57 +01:00

Check examples on GHA

This commit is contained in:
Yuki Okushi 2020-07-18 15:12:51 +09:00
parent 28afff239f
commit 8edee01ac4
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1

33
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Check examples
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master
env:
RUSTFLAGS: -A dead-code -A unused-variables
jobs:
check-examples:
strategy:
fail-fast: false
name: Check examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use stable
run: |
rustup override set stable
rustup update stable
- name: cargo check and cargo test
run: |
cd examples
cargo check
cargo test