Skip to content

Commit fe0ec7b

Browse files
Migrate to registry-backed Spago and modernize tooling (#8)
* Modernize development tooling and CI * Migrate to registry-backed Spago configuration
1 parent c1b8e37 commit fe0ec7b

10 files changed

Lines changed: 4317 additions & 103 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: CI
22

3-
# Run CI when a PR is opened against the branch `master`
4-
# and when one pushes a commit to `master`.
53
on:
64
push:
75
branches: [master]
86
pull_request:
97
branches: [master]
108

11-
# Run CI on all 3 latest OSes
129
jobs:
1310
build:
1411
strategy:
@@ -17,53 +14,23 @@ jobs:
1714
runs-on: ${{ matrix.os }}
1815

1916
steps:
20-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v6
2118

22-
- uses: purescript-contrib/setup-purescript@main
19+
- uses: actions/setup-node@v6
2320
with:
24-
purescript: "0.15.9"
25-
purs-tidy: "0.9.2"
26-
psa: "0.8.2"
27-
spago: "0.20.9"
21+
node-version: "24"
22+
cache: npm
2823

29-
- name: Cache PureScript dependencies
30-
uses: actions/cache@v2
31-
with:
32-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
33-
path: |
34-
.spago
35-
output
36-
37-
- name: Set up Node toolchain
38-
uses: actions/setup-node@v2
39-
with:
40-
node-version: "16"
24+
- run: npm ci
4125

42-
- name: Cache NPM dependencies
43-
uses: actions/cache@v2
44-
env:
45-
cache-name: cache-node-modules
46-
with:
47-
path: ~/.npm
48-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
49-
restore-keys: |
50-
${{ runner.os }}-build-${{ env.cache-name }}-
51-
${{ runner.os }}-build-
52-
${{ runner.os }}-
53-
54-
# Compile the library/project
55-
# censor-lib: ignore warnings emitted by dependencies
56-
# strict: convert warnings into errors
57-
# Note: `purs-args` actually forwards these args to `psa`
5826
- name: Build the project
59-
run: |
60-
spago build --purs-args "--censor-lib --strict"
27+
run: npm run build
6128

6229
- name: Run tests
63-
run: |
64-
spago test
30+
run: npm test
6531

66-
- name: Check Formatting
32+
- name: Check lint and formatting
6733
if: runner.os == 'Linux'
6834
run: |
69-
purs-tidy check src test
35+
npm run lint
36+
npm run format:check

‎.oxfmtrc.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingComma": "es5"
3+
}

0 commit comments

Comments
 (0)