-
Notifications
You must be signed in to change notification settings - Fork 46
37 lines (30 loc) · 913 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "latest"
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 --censor-stats --strict --ensure-ranges --pedantic-packages
- name: Run tests
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning
- name: Verify formatting
run: purs-tidy check src test