-
-
Notifications
You must be signed in to change notification settings - Fork 115
42 lines (38 loc) · 970 Bytes
/
haskell.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Haskell
on:
pull_request:
paths:
- "haskell/stack.yaml"
- "haskell/**/*.cabal"
- "haskell/**/*.hs"
push:
branches: [master]
paths:
- "haskell/stack.yaml"
- "haskell/**/*.cabal"
- "haskell/**/*.hs"
- ".github/workflows/haskell.yaml"
jobs:
build:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Setup GHC
uses: haskell-actions/setup@v2
with:
ghc-version: "9.4.8"
enable-stack: true
stack-version: "latest"
- name: Clone project
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.stack
key: ${{ runner.os }}-stack-${{ hashFiles('haskell/stack.yaml') }}
restore-keys: |
${{ runner.os }}-stack-
- name: Build and run tests
run: |
cd haskell/
stack test --fast --no-terminal --system-ghc