Add publish section to spago.yaml #16
This file contains 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 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: purescript-contrib/setup-purescript@main | |
with: | |
purescript: "0.15.15" | |
purs-tidy: "latest" | |
spago: "unstable" | |
- name: Cache PureScript dependencies | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }} | |
path: | | |
.spago | |
output | |
- name: Build source | |
run: spago build --pure | |
- name: Run tests | |
run: spago test --pure | |
- name: Verify formatting | |
run: purs-tidy check src test |