-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 823 Bytes
/
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
name: CI
# Trigger the workflow on push or pull request, but only for the main branch
on:
pull_request:
push:
branches: [main]
jobs:
cabal:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc:
- "latest"
- "9.10.1"
- "9.8.2"
- "9.6.2"
- "9.4.7"
- "9.2.5"
- "9.0.2"
steps:
- name: Checkout commit
uses: actions/checkout@v3
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'
- name: Set up GHC & cabal
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "latest"
- name: Build
run: cabal build
- name: Test
run: cabal test