fix: stabilize CLI contract test spawning #34
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: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Provision pinned Darktide source snapshot | |
| run: | | |
| PINNED_SHA=$(node -e "console.log(JSON.parse(require('fs').readFileSync('data/ground-truth/source-snapshots/manifest.json','utf8')).git_revision)") | |
| git init ../Darktide-Source-Code | |
| cd ../Darktide-Source-Code | |
| git remote add origin https://github.com/Aussiemon/Darktide-Source-Code.git | |
| git fetch --depth 1 origin "$PINNED_SHA" | |
| git checkout FETCH_HEAD | |
| - name: Run checks | |
| env: | |
| GROUND_TRUTH_SOURCE_ROOT: ../Darktide-Source-Code | |
| run: make check |