Skip to content

Commit 29af4f3

Browse files
committed
Lets try out GitHub workflows
1 parent 4cabb5d commit 29af4f3

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/haskell.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)