feat: use Variant, 5 more parsers + spago.yaml #37
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: [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" | |
- 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 | |
- name: Run tests | |
run: spago test --no-install | |
- name: Check formatting | |
run: purs-tidy check src test | |
- name: Verify Bower & Pulp | |
run: | | |
npm install bower [email protected] | |
npx bower install | |
npx pulp build -- --censor-lib --strict | |
if [ -d "test" ]; then | |
npx pulp test | |
fi |