Skip to content

Commit 1616683

Browse files
author
Nick Seagull
committed
Update
1 parent 2808b51 commit 1616683

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
branches:
99
- main
1010

11-
defaults:
12-
run:
13-
shell: nix-shell --run "bash -e {0}"
14-
1511
jobs:
1612
tests:
1713
strategy:
@@ -21,7 +17,7 @@ jobs:
2117

2218
steps:
2319
- uses: actions/checkout@v4
24-
- uses: cachix/install-nix-action@v26
20+
- uses: cachix/install-nix-action@v27
2521
- name: Cache Cabal
2622
id: cache
2723
uses: actions/cache@v4
@@ -34,13 +30,13 @@ jobs:
3430

3531
- name: Update Cabal Hackage list
3632
# if: steps.cache.outputs.cache-hit != 'true'
37-
run: cabal update
33+
run: nix-shell --run "cabal update"
3834

3935
- name: Build the project
40-
run: cabal build all
36+
run: nix-shell --run "cabal build"
4137

4238
- name: Run core tests
43-
run: cabal test core
39+
run: nix-shell --run "cabal test core"
4440

4541
- name: Run CLI tests
46-
run: cabal test cli
42+
run: nix-shell --run "cabal test cli"

0 commit comments

Comments
 (0)