| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | branches: [main] |
| 8 | |
| 9 | env: |
| 10 | CARGO_TERM_COLOR: always |
| 11 | CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse |
| 12 | RUST_BACKTRACE: full |
| 13 | |
| 14 | jobs: |
| 15 | build-and-test: |
| 16 | runs-on: ${{ matrix.os }} |
| 17 | |
| 18 | strategy: |
| 19 | matrix: |
| 20 | os: [ubuntu-latest, windows-latest, macos-latest] |
| 21 | |
| 22 | steps: |
| 23 | - uses: actions/checkout@v3 |
| 24 | - name: Build |
| 25 | run: cargo build --verbose |
| 26 | - name: Test |
| 27 | run: cargo test --verbose -- --nocapture |