Skip to content

Commit 977296d

Browse files
authored
Update build.yml
1 parent 99d2992 commit 977296d

1 file changed

Lines changed: 7 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,21 @@
11
name: build
22

33
on:
4-
push:
5-
branches:
6-
- main
74
pull_request:
85
branches:
96
- main
10-
merge_group:
11-
schedule:
12-
- cron: 0 0 * * *
137

148
jobs:
159
build:
1610
runs-on: ubuntu-latest
1711

1812
steps:
19-
- uses: actions/checkout@v3
20-
21-
- uses: actions/setup-node@v3
22-
with:
23-
node-version: 16
24-
25-
- name: Workaround runner image issue
26-
# https://github.com/actions/runner-images/issues/7061
27-
run: sudo chown -R $USER /usr/local/.ghcup
28-
29-
# this ensures that tests do not timeout
30-
- run: ghc --version
13+
- run: rm -rf /usr/local/.ghcup
14+
- run: |
15+
src=https://github.com/hspec/setup-haskell/releases/download/nightly/dist-$RUNNER_OS-$RUNNER_ARCH.tar.gz
16+
curl -sSL "$src" | tar -xz -C /usr/local
3117
- run: ghcup list
18+
- run: ghc --version
19+
- run: cabal update
20+
- run: cabal install --package-env=. --lib hspec
3221

33-
- run: npm ci
34-
- run: npm test
35-
36-
- run: npm run build
37-
- run: npx ts-node generate/readme.ts > README.md
38-
- name: Check for uncommitted changes
39-
run: git diff --quiet || (git diff && false)

0 commit comments

Comments
 (0)