Repository navigation
Migrate to Spago 1 and modernize development tooling #24
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 | |
| # Run CI when a PR is opened against the branch `main` | |
| # and when one pushes a commit to `main`. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node toolchain | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| cache: npm | |
| - name: Setup PureScript tooling | |
| run: npm ci | |
| - name: Cache PureScript dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| key: ${{ runner.os }}-spago-${{ hashFiles('spago.yaml', 'spago.lock', 'package-lock.json') }} | |
| path: | | |
| .spago | |
| output | |
| - name: Build the project | |
| run: npm run build | |
| - name: Run tests | |
| run: npm test | |
| - name: Lint JavaScript | |
| if: runner.os == 'Linux' | |
| run: npm run lint | |
| - name: Check Formatting | |
| if: runner.os == 'Linux' | |
| run: npm run format:check |