We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cabb5d commit 29af4f3Copy full SHA for 29af4f3
.github/workflows/haskell.yml
@@ -0,0 +1,41 @@
1
+name: Haskell Stack CI
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v3
16
17
+ - name: Install hlint
18
+ run: sudo apt install -y hlint
19
20
+ - name: Run hlint
21
+ run: hlint .
22
23
+ - name: Run fourmolu
24
+ uses: haskell-actions/run-fourmolu@v11
25
26
+ - name: Cache Stack and binaries
27
+ uses: actions/cache@v3
28
+ with:
29
+ path: |
30
+ ~/.stack
31
+ .stack-work
32
+ key: ${{ runner.os }}-stack-${{ hashFiles('**/stack.yaml.lock') }}
33
34
+ - name: Set up GHC with Stack
35
+ run: stack setup
36
37
+ - name: Build project
38
+ run: stack build --fast
39
40
+ - name: Run tests
41
+ run: stack test --fast
0 commit comments