Skip to content

Commit 6457f43

Browse files
committed
Test with all GHC 8.* major versions
1 parent 47917ba commit 6457f43

2 files changed

Lines changed: 31 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,59 @@
11
name: CI
22

3-
# Trigger the workflow on push or pull request, but only for the master branch
3+
# Trigger the workflow on push or pull request, but only for the
4+
# master branch
45
on:
56
pull_request:
67
push:
78
branches: [master]
9+
paths-ignore:
10+
- 'README.md'
11+
- 'stack.yaml'
12+
- '.travis.yml'
813

914
jobs:
1015
build:
11-
name: ghc ${{ matrix.ghc }}
12-
runs-on: ubuntu-16.04
16+
name: ghc ${{ matrix.versions.ghc }}
17+
runs-on: ubuntu-latest
1318
strategy:
1419
matrix:
15-
cabal: ["2.4"]
16-
ghc:
17-
- "8.0.2"
18-
- "8.2.2"
19-
- "8.4.4"
20-
- "8.6.5"
21-
- "8.8.3"
20+
versions:
21+
- ghc: '8.0.2'
22+
cabal: '2.4'
23+
- ghc: '8.2.2'
24+
cabal: '2.4'
25+
- ghc: '8.4.4'
26+
cabal: '2.4'
27+
- ghc: '8.6.5'
28+
cabal: '3.2'
29+
- ghc: '8.8.4'
30+
cabal: '3.2'
31+
- ghc: '8.10.1'
32+
cabal: '3.2'
2233

2334
steps:
2435
- uses: actions/checkout@v2
25-
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
36+
if: >-
37+
github.event.action == 'opened' ||
38+
github.event.action == 'synchronize' ||
39+
github.event.ref == 'refs/heads/master'
2640
2741
- uses: actions/setup-haskell@v1
2842
name: Setup Haskell
2943
with:
30-
ghc-version: ${{ matrix.ghc }}
31-
cabal-version: ${{ matrix.cabal }}
44+
ghc-version: ${{ matrix.versions.ghc }}
45+
cabal-version: ${{ matrix.versions.cabal }}
3246

3347
- uses: actions/cache@v1
3448
name: Cache ~/.cabal/store
3549
with:
3650
path: ~/.cabal/store
37-
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
51+
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-cabal
3852

3953
- name: Build
4054
run: |
4155
cabal v2-update
42-
cabal v2-build --enable-tests --enable-benchmarks
56+
cabal v2-build --enable-tests
4357
4458
- name: Test
4559
run: |

hslua-module-doclayout.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ tested-with: GHC == 8.0.2
1919
GHC == 8.2.2
2020
GHC == 8.4.4
2121
GHC == 8.6.5
22-
GHC == 8.8.3
22+
GHC == 8.8.4
23+
GHC == 8.10.1
2324

2425
source-repository head
2526
type: git

0 commit comments

Comments
 (0)