-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.17 KB
/
ci.yml
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
43
44
45
46
47
48
49
50
51
name: CI
on:
pull_request:
push:
branches: main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: generate
uses: freckle/stack-action/generate-matrix@v5
outputs:
stack-yamls: ${{ steps.generate.outputs.stack-yamls }}
test:
runs-on: ubuntu-latest
needs: generate
strategy:
matrix:
stack-yaml: ${{ fromJSON(needs.generate.outputs.stack-yamls) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: |
cat > github-app-token/key.pem <<'EOM'
${{ secrets.FRECKLE_AUTOMATION_PRIVATE_KEY }}
EOM
- uses: freckle/stack-action@v5
env:
STACK_YAML: ${{ matrix.stack-yaml }}
GITHUB_APP_ID: ${{ vars.FRECKLE_AUTOMATION_APP_ID }}
GITHUB_INSTALLATION_ID: ${{ vars.FRECKLE_AUTOMATION_INSTALLATION_ID }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/hlint-setup@v2
- uses: haskell-actions/hlint-run@v2
with:
fail-on: warning