Upgrade to spago@next (#120) #391
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
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macOS-latest] # windows disabled for unknown spago reasons | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: Cache PureScript dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }} | |
| path: | | |
| .spago | |
| output | |
| - name: Install npm dependencies | |
| run: npm install --include=dev | |
| - name: Install dependencies | |
| run: npm run install | |
| - name: Build project | |
| run: npm run build -- --pedantic-packages | |
| - name: Run snapshots | |
| run: npm run test | |
| - name: Test output-diff (Linux only) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: cd backend-es && npm run test:output-diff | |
| - name: Check formatting (Linux only) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: npm run format:check |