feat(array): --min-viable cost guard + MPI declaration tags (#52) (#67) #84
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: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test: | |
| name: typecheck · test · build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| # The @spore-host/truffle-ts dependency is a public git dependency; npm | |
| # normalizes its lockfile URL to git+ssh, which CI runners can't clone. | |
| # Rewrite git@github → https so `npm ci` fetches it over HTTPS. | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Test (with coverage) | |
| run: npm run test:cov | |
| - name: Build | |
| run: npm run build | |
| - name: Upload coverage | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: coverage/ | |
| if-no-files-found: ignore |