-
-
Notifications
You must be signed in to change notification settings - Fork 68
84 lines (69 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
84 lines (69 loc) · 1.89 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: CI
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches:
- main
jobs:
build:
strategy:
matrix:
include:
- env: legacy
ghc: 8.4.4
- env: maintenance
ghc: 8.10.7
- env: stable
ghc: 9.6.6
- env: latest
ghc: 9.10.3
fail-fast: false
runs-on: ubuntu-latest
name: GHC ${{ matrix.ghc }} (${{ matrix.env }})
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
ghc: ${{ matrix.ghc }}
- name: Sync environment
run: hwm sync ${{ matrix.env }}
- name: Install dependencies
run: stack build --fast --skip-ghc-check --no-terminal --test --only-dependencies
- name: Build
run: stack build --fast
- name: Build Bench and Haddock
run: stack build --fast --no-run-benchmarks --haddock --no-haddock-deps
- name: Test
run: stack test --fast
- name: Test Code Gen
run: |
stack install --fast morpheus-graphql-code-gen
morpheus check
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nalchevanidze/hwm/actions/cli@main
- name: lint
run: hwm lint
- name: format
run: hwm format
artifacts:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
name: Artifact ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Install dependencies
run: stack build --fast --skip-ghc-check --no-terminal --test --only-dependencies
- name: Test Archiving
shell: bash
run: hwm release artifacts
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true