| 1 | name: Rust |
| 2 | |
| 3 | on: [push] |
| 4 | |
| 5 | jobs: |
| 6 | build: |
| 7 | strategy: |
| 8 | matrix: |
| 9 | os: [ubuntu-latest, windows-latest, macos-latest] |
| 10 | |
| 11 | runs-on: ${{ matrix.os }} |
| 12 | |
| 13 | steps: |
| 14 | - uses: actions/checkout@v1 |
| 15 | |
| 16 | - name: Install dependencies |
| 17 | run: rustup component add rustfmt |
| 18 | |
| 19 | - name: Format |
| 20 | run: cargo fmt -- --check |
| 21 | |
| 22 | - name: Build |
| 23 | run: cargo build --verbose |
| 24 | |
| 25 | - name: Run tests |
| 26 | run: cargo test --all-features --verbose |
| 27 | |
| 28 | - name: Docs |
| 29 | run: cargo doc --no-deps |