Skip to content

Commit c599174

Browse files
committed
WIP: debug ghcup-hs ci
1 parent 5d43fe0 commit c599174

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,77 @@ jobs:
5858
npm run test
5959
shell: bash
6060
if: runner.os == 'Windows'
61+
62+
vscode:
63+
strategy:
64+
fail-fast: false
65+
matrix:
66+
include:
67+
- os: ubuntu-latest
68+
ARTIFACT: "x86_64-linux-ghcup"
69+
ghc: 9.12.2
70+
legacy: false
71+
ext: ""
72+
73+
runs-on: ${{ matrix.os }}
74+
steps:
75+
- name: Checkout
76+
uses: actions/checkout@v6
77+
with:
78+
repository: haskell/vscode-haskell
79+
80+
- name: Install Node.js
81+
uses: actions/setup-node@v6
82+
with:
83+
## make sure this corresponds with the version in release.yml
84+
node-version: latest
85+
86+
# Install test dependencies
87+
- run: npm ci
88+
- run: npm run webpack
89+
90+
- name: Add bin to PATH
91+
run: echo "$PWD/out" >> $GITHUB_PATH
92+
shell: bash
93+
94+
# Setup toolchains, install ghcup, install ghc, etc...
95+
- name: Install GHCup
96+
uses: haskell/ghcup-setup@v1
97+
with:
98+
ghc: ${{ matrix.ghc }}
99+
cabal: latest
100+
stack: latest
101+
102+
- name: Install toolchain
103+
run: |
104+
echo $PATH
105+
which ghcup
106+
ghcup --version
107+
ghcup install ghc ${{ matrix.ghc }}
108+
ghcup install cabal latest
109+
ghcup install stack latest
110+
ghcup install hls 2.2.0.0
111+
ghcup install hls latest
112+
ghcup config add-release-channel cross
113+
ghcup config add-release-channel 3rdparty
114+
ghcup config add-release-channel prereleases
115+
shell: bash
116+
117+
# Run the tests
118+
- name: Run the test on Linux
119+
run: |
120+
xvfb-run -s '-screen 0 640x480x16' -a npm run test
121+
shell: bash
122+
if: runner.os == 'Linux'
123+
124+
- name: Run the test on macOS
125+
run: |
126+
npm run test
127+
shell: bash
128+
if: runner.os == 'macOS'
129+
130+
- name: Run the test on Windows
131+
run: |
132+
npm run test
133+
shell: bash
134+
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)