Skip to content

Commit 4d3ea8b

Browse files
authored
Merge branch 'hiedb' into write_hls_unit_tests_for_get_references
2 parents 5e5d637 + 53035c9 commit 4d3ea8b

File tree

200 files changed

+1763
-1400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+1763
-1400
lines changed

.circleci/config.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ defaults: &defaults
6565

6666
- run:
6767
name: Setup stack eval hie.html
68-
command: cp test/testdata/eval/hie-stack.yaml test/testdata/eval/hie.yaml
68+
command: cp plugins/hls-eval-plugin/test/testdata/hie-stack.yaml plugins/hls-eval-plugin/test/testdata/hie.yaml
6969

7070
- run:
7171
name: Setup stack eval stack.html
72-
command: grep '^resolver:\|^compiler:' stack-build.txt > test/testdata/eval/stack.yaml
72+
command: grep '^resolver:\|^compiler:' stack-build.txt > plugins/hls-eval-plugin/test/testdata/stack.yaml
7373

7474
- run:
7575
name: Test haskell-language-server func-test suite
@@ -137,15 +137,22 @@ jobs:
137137
- STACK_FILE: "stack-8.10.2.yaml"
138138
<<: *defaults
139139

140-
ghc-nightly:
140+
ghc-8.10.3:
141+
environment:
142+
- STACK_FILE: "stack-8.10.3.yaml"
143+
<<: *defaults
144+
145+
ghc-default:
141146
environment:
142147
- STACK_FILE: "stack.yaml"
143148
<<: *defaults
144149

145150
cabal:
146151
working_directory: ~/build
147152
docker:
148-
- image: haskell:8.10.1
153+
# We have to wait to a docker image with ghc-8.10.3
154+
# See https://github.com/haskell/docker-haskell/issues/31
155+
- image: haskell:8.10.2
149156
steps:
150157
- checkout
151158
- run:
@@ -191,5 +198,6 @@ workflows:
191198
- ghc-8.8.4
192199
- ghc-8.10.1
193200
- ghc-8.10.2
194-
# - ghc-nightly
201+
- ghc-8.10.3
202+
- ghc-default
195203
- cabal

.github/workflows/bench.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
ghc: ['8.10.2', '8.8.4', '8.6.5']
12-
os: [ubuntu-latest, macOS-latest]
12+
os: [ubuntu-latest]
1313

1414
steps:
1515
- uses: actions/checkout@v2
1616
- run: git fetch origin master # check the master branch for benchmarking
17-
- uses: actions/setup-haskell@v1
17+
- uses: haskell/actions/setup@v1
1818
with:
1919
ghc-version: ${{ matrix.ghc }}
2020
cabal-version: '3.2'
@@ -26,7 +26,11 @@ jobs:
2626
path: |
2727
~/.cabal/packages
2828
~/.cabal/store
29-
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-bench
29+
key: ${{ runner.os }}-${{ matrix.ghc }}-bench-${{ hashFiles('cabal.project') }}
30+
restore-keys: |
31+
${{ runner.os }}-${{ matrix.ghc }}-build-${{ hashFiles('cabal.project') }}
32+
${{ runner.os }}-${{ matrix.ghc }}-bench-
33+
${{ runner.os }}-${{ matrix.ghc }}
3034
3135
- run: cabal update
3236

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
ghc: ['8.10.2', '8.10.1', '8.8.4', '8.8.3', '8.8.2', '8.6.5', '8.6.4']
19+
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']
2020
os: [ubuntu-latest, macOS-latest, windows-latest]
2121
exclude:
2222
- os: windows-latest
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v2
3636
with:
3737
submodules: true
38-
- uses: actions/setup-haskell@v1
38+
- uses: haskell/actions/setup@v1
3939
with:
4040
ghc-version: ${{ matrix.ghc }}
4141
cabal-version: '3.2'
@@ -174,4 +174,3 @@ jobs:
174174
asset_path: bin/haskell-language-server.tar.gz
175175
asset_name: haskell-language-server-${{ matrix.os }}-${{ github.event.release.tag_name }}.tar.gz
176176
asset_content_type: application/gzip
177-

.github/workflows/nix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ghc: ['default', 'ghc8102', 'ghc884', 'ghc865']
11+
ghc: ['default']
1212
os: [ubuntu-latest, macOS-latest]
1313

1414
steps:

.github/workflows/test.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ jobs:
55
test:
66
runs-on: ${{ matrix.os }}
77
strategy:
8-
fail-fast: false
8+
fail-fast: true
99
matrix:
10-
ghc: ["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, windows-latest]
12-
ghc-lib: [false]
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]
1312
exclude:
1413
- os: windows-latest
1514
ghc: "8.10.2" # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550
@@ -19,23 +18,23 @@ jobs:
1918
ghc: "8.8.3" # fails due to segfault
2019
- os: windows-latest
2120
ghc: "8.8.2" # fails due to error with Cabal
21+
- os: windows-latest
22+
ghc: "8.6.4" # times out after 300m
2223
include:
2324
- os: windows-latest
2425
ghc: "8.10.2.2" # only available for windows and choco
25-
# one ghc-lib build
26-
- os: ubuntu-latest
27-
ghc: '8.10.1'
28-
ghc-lib: true
2926

3027
steps:
28+
# Cancel queued workflows from earlier commits in this branch
29+
- uses: fkirc/skip-duplicate-actions@master
30+
3131
- uses: actions/checkout@v2
3232
with:
3333
submodules: true
34-
- uses: actions/setup-haskell@v1
34+
- uses: haskell/actions/setup@v1
3535
with:
3636
ghc-version: ${{ matrix.ghc }}
3737
cabal-version: "3.2"
38-
enable-stack: true
3938

4039
- run: ./fmt.sh
4140
name: "HLint via ./fmt.sh"
@@ -45,10 +44,12 @@ jobs:
4544
env:
4645
cache-name: cache-cabal
4746
with:
48-
path: ~/.cabal/
49-
key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
47+
path: |
48+
~/.cabal/packages
49+
~/.cabal/store
50+
key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ hashFiles('cabal.project') }}
5051
restore-keys: |
51-
${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-
52+
${{ runner.os }}-${{ matrix.ghc }}-bench-$${ hashFiles('cabal.project') }}
5253
${{ runner.os }}-${{ matrix.ghc }}-build-
5354
${{ runner.os }}-${{ matrix.ghc }}
5455
@@ -70,13 +71,11 @@ jobs:
7071
run: cabal build || cabal build || cabal build
7172

7273
- name: Test ghcide
73-
if: ${{ !matrix.ghc-lib }}
7474
shell: bash
7575
# run the tests without parallelism to avoid running out of memory
7676
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"
7777

7878
- name: Test func-test suite
79-
if: ${{ !matrix.ghc-lib }}
8079
shell: bash
8180
env:
8281
HLS_TEST_EXE: hls
@@ -87,7 +86,6 @@ jobs:
8786
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"
8887

8988
- name: Test wrapper-test suite
90-
if: ${{ !matrix.ghc-lib }}
9189
shell: bash
9290
env:
9391
HLS_TEST_EXE: hls

0 commit comments

Comments
 (0)