Migrate ESLint to use new flat config (Fixes #42) #58
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
name: "CI" | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 # Using pinned version instead of -latest until https://github.com/actions/runner-images/issues/6704 is resolved. | |
name: 'Test' | |
steps: | |
- name: 'Ensure a recent Firefox and the xvfb framebuffer are installed' | |
run: | | |
sudo apt-get update | |
sudo apt-get install xvfb firefox | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: 'Install NPM deps' | |
run: npm install | |
- name: 'Run JS tests in headless mode, thanks to xvfb' | |
run: xvfb-run npm test |