Bump @types/node from 20.12.12 to 20.14.9 #1373
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-12, ubuntu-latest, windows-latest] | |
ghc: [8.10.7, 9.4.8, 9.6.4, 9.8.2] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
## make sure this corresponds with the version in release.yml | |
node-version: latest | |
# Install test dependencies | |
- run: yarn install --immutable --immutable-cache --check-cache | |
- run: yarn run webpack | |
# Setup toolchains, install ghcup, install ghc, etc... | |
- name: Setup Haskell | |
uses: haskell-actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
- name: Toolchain settings | |
run: | | |
ghcup upgrade -i -f | |
export GHCUP_INSTALL_BASE_PREFIX=$(pwd)/test-workspace/bin | |
ghcup config set cache true | |
ghcup install stack latest | |
ghcup install cabal latest | |
ghcup install ghc ${{ matrix.ghc }} | |
ghcup set ghc ${{ matrix.ghc }} | |
# This is a prefetched, fallback HLS version. | |
# We want to make sure, we still support old GHC versions | |
# and graciously fallback to an HLS version that supports the old GHC version, such as 8.10.7 | |
ghcup install hls 2.2.0.0 | |
ghcup install hls latest | |
shell: bash | |
# Run the tests | |
- name: Run the test on Linux | |
run: | | |
export GHCUP_INSTALL_BASE_PREFIX=$(pwd)/test-workspace/bin | |
export PATH="$(pwd)/test-workspace/bin/.ghcup/bin:$PATH" | |
xvfb-run -s '-screen 0 640x480x16' -a yarn run test | |
shell: bash | |
if: runner.os == 'Linux' | |
- name: Run the test on macOS | |
run: | | |
export GHCUP_INSTALL_BASE_PREFIX=$(pwd)/test-workspace/bin | |
export PATH="$(pwd)/test-workspace/bin/.ghcup/bin:$PATH" | |
yarn run test | |
shell: bash | |
if: runner.os == 'macOS' | |
- name: Run the test on Windows | |
run: | | |
export GHCUP_INSTALL_BASE_PREFIX=$(pwd)/test-workspace/bin | |
export PATH="$(pwd)/test-workspace/bin/ghcup/bin:$PATH" | |
yarn run test | |
shell: bash | |
if: runner.os == 'Windows' | |
# Create package artefacts | |
- name: Delete test artefacts | |
# The test-suite doesn't clean up correctly after itself. | |
# This is a poor man's workaround that after test execution, | |
# the test-workspace still contains binaries and caches. | |
run: | | |
rm -rf test-workspace | |
rm -rf out | |
shell: bash |