Skip to content

Migrate to Spago 1 and modernize development tooling #24

Migrate to Spago 1 and modernize development tooling

Migrate to Spago 1 and modernize development tooling #24

Workflow file for this run

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