Merge pull request #36 from flyingcircusio/PL-135522-log-manifest-unk… #614
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: | |
| pull_request: | |
| push: | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| runs-on: "${{ matrix.os }}" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: nixbuild/nix-quick-install-action@v34 | |
| - name: Restore and save Nix store | |
| uses: nix-community/cache-nix-action@v6 | |
| with: | |
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/devenv.nix', '**/devenv.lock') }} | |
| # if there's no cache hit, restore a cache by this prefix | |
| restore-prefixes-first-match: nix-${{ runner.os }}- | |
| gc-max-store-size: 5G | |
| purge: true | |
| purge-prefixes: nix-${{ runner.os }}- | |
| purge-created: 0 | |
| purge-last-accessed: 0 | |
| purge-primary-key: never | |
| - name: Install devenv.sh | |
| run: nix profile install nixpkgs#devenv | |
| - name: Model Directories | |
| id: models | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .models | |
| key: ${{ runner.os }}-models | |
| - name: Start processes | |
| run: devenv up -d | |
| - name: Wait for services | |
| run: devenv processes wait | |
| - name: Run tests | |
| run: devenv shell run-tests |