Skip to content

Migrate to registry-backed Spago #48

Migrate to registry-backed Spago

Migrate to registry-backed Spago #48

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Node toolchain
uses: actions/setup-node@v7
with:
node-version: "24.x"
- name: Set up PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"
purs-tidy: "latest"
- name: Cache PureScript dependencies
uses: actions/cache@v6
with:
key: ${{ runner.os }}-spago-${{ hashFiles('spago.yaml', 'spago.lock') }}
path: |
.spago
- name: Cache NPM dependencies
uses: actions/cache@v6
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install NPM dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Run tests
run: npm run test
- name: Check formatting
run: purs-tidy check src test
- name: Lint JavaScript
run: npm run lint