purescript-httpurple/.github/workflows/check.yaml

46 lines
1.0 KiB
YAML
Raw Normal View History

2022-05-25 19:28:08 +00:00
name: CI
on:
push:
2022-05-25 19:28:08 +00:00
branches: [main]
pull_request:
branches: [main]
jobs:
2022-05-25 19:28:08 +00:00
build:
runs-on: ubuntu-latest
steps:
2022-05-25 19:28:08 +00:00
- uses: actions/checkout@v2
2022-05-25 19:28:08 +00:00
- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
2022-05-25 19:28:08 +00:00
purescript: "unstable"
purs-tidy: "latest"
2022-05-25 19:28:08 +00:00
- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
2022-05-25 19:28:08 +00:00
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.0
npx bower install
npx pulp build -- --censor-lib --strict