aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pr.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
new file mode 100644
index 0000000..2e81015
--- /dev/null
+++ b/.github/workflows/pr.yml
@@ -0,0 +1,44 @@
1name: Test PR
2on:
3 push:
4 branches:
5 - master
6 pull_request:
7 branches:
8 - master
9 release:
10 types: [created, edited, published]
11
12jobs:
13 hlint:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v3
17
18 - name: 'Set up HLint'
19 uses: haskell/actions/hlint-setup@v2
20 with:
21 version: '2.2.1'
22 - name: 'Run HLint'
23 uses: haskell/actions/hlint-run@v2
24 with:
25 path: '["core/", "specification/", "scaffolder/"]'
26 fail-on: warning
27 build-haskell:
28 name: EDI Parser
29 runs-on: ubuntu-latest
30 steps:
31 - uses: actions/checkout@v3
32 - uses: actions/cache@v2
33 with:
34 path: |
35 ~/.stack
36 .stack-work
37 key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml', '*/package.yaml') }}
38 restore-keys: |
39 ${{ runner.os }}-stack
40 - uses: haskell/actions/setup@v2
41 with:
42 enable-stack: true
43 stack-version: 'latest'
44 - run: make test