Skip to content

Commit c5f4ad7

Browse files
committed
chore: normalize build tooling (purescript-overlay, nix CI, lua51)
1 parent 2be6b42 commit c5f4ad7

3 files changed

Lines changed: 283 additions & 302 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,25 @@ on:
44
push:
55
branches: [master]
66
pull_request:
7-
branches: [master]
87

98
jobs:
109
build:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v2
14-
15-
- uses: purescript-contrib/setup-purescript@main
16-
with:
17-
purescript: "unstable"
12+
- uses: actions/checkout@v4
1813

19-
- uses: actions/setup-node@v2
14+
- uses: cachix/install-nix-action@v27
2015
with:
21-
node-version: "14.x"
16+
extra_nix_config: |
17+
accept-flake-config = true
18+
extra-substituters = https://cache.iog.io https://purescript-lua.cachix.org
19+
extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= purescript-lua.cachix.org-1:yLs4ei2HtnuPtzLekOrW3xdfm95+Etw15gwgyIGTayA=
2220
23-
- name: Install dependencies
24-
run: |
25-
npm install -g bower
26-
npm install
27-
bower install --production
21+
- name: Build
22+
run: nix develop -c ./scripts/build
2823

29-
- name: Build source
30-
run: npm run-script build
24+
- name: Test
25+
run: if [ -f scripts/test ]; then nix develop -c ./scripts/test; fi
3126

32-
- name: Run tests
33-
run: |
34-
bower install
35-
npm run-script test --if-present
27+
- name: Luacheck
28+
run: nix develop -c luacheck --quiet --std lua51 --no-unused-args src/

0 commit comments

Comments
 (0)