]> git.immae.eu Git - github/fretlink/edi-parser.git/blame - .github/workflows/pr.yml
Release code as open source
[github/fretlink/edi-parser.git] / .github / workflows / pr.yml
CommitLineData
a9d77a20
FM
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