git.iko.soy/rowtype-yoga/purescript-yoga-redis
on main help sign in
Simplify CI: use official setup-purescript action
commit94b3f394d8edf53fa49e3223d83ab7224b250fdb authorMark <mark.eibes@gmail.com> dateWed 4 Feb 2026, 20:18 (8 months ago) parentc99700e
2 files changed+14−40
.github/actions/setup-purescript-bun/action.yml−37 .github/workflows/ci.yml+14−3
.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:
2424 steps:
2525 - uses: actions/checkout@v4
2626
27− - name: Setup PureScript with Bun
28− uses: ./.github/actions/setup-purescript-bun
27+ - name: Setup Node.js 22 (required for Spago 1.x)
28+ uses: actions/setup-node@v4
29+ with:
30+ node-version: '22'
2931
30− - name: Install dependencies
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+
41+ - name: Install npm dependencies
3142 run: bun install
3243
3344 - name: Build