dx: fix unit test snippet #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CI" | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build_and_test: | |
| name: "Build and test" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: rustup toolchain install stable --profile minimal --no-self-update | |
| - run: rustup default stable | |
| # Restore cache before installation of deps and binaries | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| # Only restore, not save, if not running on main | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: nextest | |
| - run: cargo build | |
| - run: cargo nextest run |