Add resource management functions to runtime #53
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/flake-checker-action@main | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-directories: "server" | |
| - name: Build server | |
| run: cd server && nix develop --command bash -c "cargo build" | |
| - name: Run tests | |
| run: cd server && nix develop --command bash -c "cargo test -- --test-threads=1" | |
| - name: Run tests with output | |
| run: cd server && nix develop --command bash -c "cargo test -- --nocapture --test-threads=1" | |
| if: failure() |