| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ master ] |
| 6 | pull_request: |
| 7 | branches: [ master ] |
| 8 | |
| 9 | env: |
| 10 | CARGO_TERM_COLOR: always |
| 11 | |
| 12 | jobs: |
| 13 | cargo-test: |
| 14 | strategy: |
| 15 | matrix: |
| 16 | os: [ubuntu-latest] |
| 17 | runs-on: ${{ matrix.os }} |
| 18 | |
| 19 | steps: |
| 20 | - uses: actions/cache@v3 |
| 21 | with: |
| 22 | path: | |
| 23 | ~/.cargo/bin/ |
| 24 | ~/.cargo/registry/index/ |
| 25 | ~/.cargo/registry/cache/ |
| 26 | ~/.cargo/git/db/ |
| 27 | target/ |
| 28 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
| 29 | |
| 30 | - uses: actions/checkout@v3 |
| 31 | - name: Run cargo deftest |
| 32 | run: cargo test --verbose |
| 33 | - name: Run cargo alltest |
| 34 | run: cargo test --all-features --verbose |