Skip to content

Depend on js-fetch instead of fetch-core #37

Depend on js-fetch instead of fetch-core

Depend on js-fetch instead of fetch-core #37

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@v2
- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"
purs-tidy: "latest"
- uses: actions/setup-node@v2
with:
node-version: "20"
- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output
- name: Install dependencies
run: spago install
- name: Build source
run: spago build --no-install --purs-args '--censor-lib --strict'
- name: Run tests
run: spago -x test.dhall test
- name: Check formatting
run: purs-tidy check src test
- name: Verify Bower & Pulp
run: |
npm install bower pulp@16.0.1
npx bower install
npx pulp build -- --censor-lib --strict