-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 874 Bytes
/
stack-test.yml
File metadata and controls
42 lines (34 loc) · 874 Bytes
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: Stack Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Haskell
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-version: 'latest'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y z3
- name: Cache Stack
uses: actions/cache@v4
with:
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml', 'package.yaml') }}
restore-keys: |
${{ runner.os }}-stack-
- name: Install dependencies with Stack
run: stack test --only-dependencies --no-nix
- name: Build and run tests
run: stack test --no-nix