ci: workflows for format, doc, test #2
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: Build and test | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - uses: DeterminateSystems/flake-checker-action@main | |
| - name: Test async only | |
| run: nix develop --no-update-lock-file --command cargo test --no-default-features -F async,all-devices | |
| - name: Test sync only | |
| run: nix develop --no-update-lock-file --command cargo test --no-default-features -F sync,all-devices | |
| - name: Test all | |
| run: nix develop --no-update-lock-file --command cargo test --all-features |