We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07fd4dc + 8dbbfcd commit 8de8ba2Copy full SHA for 8de8ba2
.github/workflows/ci.yml
@@ -0,0 +1,35 @@
1
+name: CI
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ build-and-test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v4
14
15
+ - name: Setup Haskell Stack
16
+ uses: haskell/actions/setup@v2
17
+ with:
18
+ enable-stack: true
19
20
+ - name: Cache Stack dependencies
21
+ uses: actions/cache@v4
22
23
+ path: ~/.stack
24
+ key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml') }}
25
+ restore-keys: |
26
+ stack-${{ runner.os }}-
27
28
+ - name: Install dependencies
29
+ run: stack build --only-dependencies
30
31
+ - name: Build project
32
+ run: stack build
33
34
+ - name: Run tests
35
+ run: stack test
0 commit comments