Skip to content

Commit 8de8ba2

Browse files
authored
Merge pull request #3 from morphismtech/CI
CI
2 parents 07fd4dc + 8dbbfcd commit 8de8ba2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

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

Comments
 (0)