Skip to content

Bump @eslint/js from 9.15.0 to 9.16.0 (#1175) #1522

Bump @eslint/js from 9.15.0 to 9.16.0 (#1175)

Bump @eslint/js from 9.15.0 to 9.16.0 (#1175) #1522

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, 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: Install GHCup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
shell: bash
env:
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
BOOTSTRAP_HASKELL_MINIMAL: 1
- name: Check GHCup (Windows)
run: |
echo "c:/ghcup/bin" >> $GITHUB_PATH
shell: bash
if: runner.os == 'Windows'
- name: Check GHCup (Unix)
run: |
echo "${HOME}/.ghcup/bin" >> $GITHUB_PATH
shell: bash
if: runner.os != 'Windows'
- 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