Skip to content

Commit 3a2e7f8

Browse files
Migrate to registry-backed Spago and modernize tooling (#2)
* Modernize pinned npm tooling and CI * Migrate node-tls to registry-backed Spago
1 parent 76e7462 commit 3a2e7f8

10 files changed

Lines changed: 4360 additions & 123 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,46 +17,32 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v6
2121

2222
- name: Set up Node toolchain
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v6
2424
with:
25-
node-version: "18"
26-
27-
- name: Cache NPM dependencies
28-
uses: actions/cache@v3
29-
env:
30-
cache-name: cache-node-modules
31-
with:
32-
path: ~/.npm
33-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
34-
restore-keys: |
35-
${{ runner.os }}-build-${{ env.cache-name }}-
36-
${{ runner.os }}-build-
37-
${{ runner.os }}-
25+
node-version: "24"
26+
cache: npm
3827

3928
- name: Setup PureScript tooling
40-
run:
41-
npm i -g purescript@latest purs-tidy@latest purescript-psa@latest spago@latest
29+
run: npm ci
4230

4331
- name: Cache PureScript dependencies
44-
uses: actions/cache@v3
32+
uses: actions/cache@v5
4533
with:
46-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
34+
key: ${{ runner.os }}-spago-${{ hashFiles('spago.yaml', 'spago.lock', 'package-lock.json') }}
4735
path: |
4836
.spago
4937
output
5038
51-
# Compile the library/project
52-
# censor-lib: ignore warnings emitted by dependencies
53-
# strict: convert warnings into errors
54-
# Note: `purs-args` actually forwards these args to `psa`
5539
- name: Build the project
56-
run: |
57-
npx spago build --purs-args "--censor-lib --strict"
40+
run: npm run build
5841

5942
- name: Check Formatting
6043
if: runner.os == 'Linux'
61-
run: |
62-
purs-tidy check src test
44+
run: npm run format:check
45+
46+
- name: Lint FFI
47+
if: runner.os == 'Linux'
48+
run: npm run lint

‎.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)