git.iko.soy/rowtype-yoga/purescript-yoga-redis
on main help sign in
Simplify CI: use official setup-purescript action
94b3f39Mark
.github/actions/setup-purescript-bun/action.ymldeleted−37
@@ -1,37 +0,0 @@
1−name: 'Setup PureScript with Bun'
2−description: 'Install Node.js, Bun, PureScript, and Spago for CI builds'
3−
4−inputs:
5− node-version:
6− description: 'Node.js version to use'
7− required: false
8− default: '22'
9− purescript-version:
10− description: 'PureScript version to install'
11− required: false
12− default: '0.15.15'
13− bun-version:
14− description: 'Bun version to use'
15− required: false
16− default: 'latest'
17−
18−runs:
19− using: 'composite'
20− steps:
21− - name: Setup Node.js
22− uses: actions/setup-node@v4
23− with:
24− node-version: ${{ inputs.node-version }}
25−
26− - name: Setup Bun
27− uses: oven-sh/setup-bun@v1
28− with:
29− bun-version: ${{ inputs.bun-version }}
30−
31− - name: Install PureScript compiler
32− shell: bash
33− run: bun install --global purescript@${{ inputs.purescript-version }}
34−
35− - name: Install Spago
36− shell: bash
37− run: bun install --global spago
.github/workflows/ci.yml+14−3
@@ -24,10 +24,21 @@ jobs:
24 steps:
24 steps:
25 - uses: actions/checkout@v4
25 - uses: actions/checkout@v4
26
26
27− - name: Setup PureScript with Bun
27+ - name: Setup Node.js 22 (required for Spago 1.x)
28− uses: ./.github/actions/setup-purescript-bun
28+ uses: actions/setup-node@v4
29+ with:
30+ node-version: '22'
29
31
32+ - name: Setup PureScript
33+ uses: purescript-contrib/setup-purescript@main
34+ with:
35+ purescript: "0.15.15"
36+ spago: "unstable"
37+
38+ - name: Setup Bun (for fast npm installs)
39+ uses: oven-sh/setup-bun@v1
40+
30− - name: Install dependencies
41+ - name: Install npm dependencies
31 run: bun install
42 run: bun install
32
43
33 - name: Build
44 - name: Build