Skip to content

Commit 2efabfe

Browse files
committed
Only test last ghc minor version
1 parent 6c93300 commit 2efabfe

File tree

1 file changed

+38
-11
lines changed

1 file changed

+38
-11
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,46 @@ jobs:
77
strategy:
88
fail-fast: true
99
matrix:
10-
ghc: ['8.10.3', "8.10.2", "8.10.1", "8.8.4", "8.8.3", "8.8.2", "8.6.5", "8.6.4"]
11-
os: [ubuntu-latest, windows-latest]
12-
exclude:
13-
- os: windows-latest
14-
ghc: "8.10.2" # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550
10+
ghc: ["8.10.3", "8.10.2", "8.10.1", "8.8.4", "8.8.3", "8.8.2", "8.6.5", "8.6.4"]
11+
os: [ubuntu-latest, macOS-latest]
12+
include:
13+
# one ghc-lib build
14+
# should be renabled: #784
15+
# - os: ubuntu-latest
16+
# ghc: '8.10.1'
17+
# ghc-lib: true
18+
# only test supported ghc major versions
19+
- os: macOS-latest
20+
ghc: '8.10.3'
21+
test: true
22+
- os: ubuntu-latest
23+
ghc: '8.10.3'
24+
test: true
1525
- os: windows-latest
16-
ghc: "8.8.4" # also fails due to segfault :(
26+
ghc: '8.10.3'
27+
test: true
28+
- os: macOS-latest
29+
ghc: '8.8.4'
30+
test: true
31+
- os: ubuntu-latest
32+
ghc: '8.8.4'
33+
test: true
34+
- os: macOS-latest
35+
ghc: '8.6.5'
36+
test: true
37+
- os: ubuntu-latest
38+
ghc: '8.6.5'
39+
test: true
1740
- os: windows-latest
18-
ghc: "8.8.3" # fails due to segfault
41+
ghc: '8.6.5'
42+
test: true
43+
# only build rest of supported ghc versions for windows
1944
- os: windows-latest
20-
ghc: "8.8.2" # fails due to error with Cabal
45+
ghc: '8.10.2.2'
2146
- os: windows-latest
22-
ghc: "8.6.4" # times out after 300m
23-
include:
47+
ghc: '8.10.1'
2448
- os: windows-latest
25-
ghc: "8.10.2.2" # only available for windows and choco
49+
ghc: '8.6.4'
2650

2751
steps:
2852
# Cancel queued workflows from earlier commits in this branch
@@ -71,11 +95,13 @@ jobs:
7195
run: cabal build || cabal build || cabal build
7296

7397
- name: Test ghcide
98+
if: ${{ !matrix.ghc-lib && matrix.test }}
7499
shell: bash
75100
# run the tests without parallelism to avoid running out of memory
76101
run: cabal test ghcide --test-options="-j1 --rerun-update" || cabal test ghcide --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test ghcide --test-options="-j1 --rerun"
77102

78103
- name: Test func-test suite
104+
if: ${{ !matrix.ghc-lib && matrix.test }}
79105
shell: bash
80106
env:
81107
HLS_TEST_EXE: hls
@@ -86,6 +112,7 @@ jobs:
86112
run: cabal test func-test --test-options="-j1 --rerun-update" || cabal test func-test --test-options="-j1 --rerun --rerun-update" || cabal test func-test --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test func-test --test-options="-j1 --rerun"
87113

88114
- name: Test wrapper-test suite
115+
if: ${{ !matrix.ghc-lib && matrix.test }}
89116
shell: bash
90117
env:
91118
HLS_TEST_EXE: hls

0 commit comments

Comments
 (0)