-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (28 loc) · 715 Bytes
/
ci.yml
File metadata and controls
36 lines (28 loc) · 715 Bytes
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
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