Reflect the move from master to main #829
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: JSDOM-CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Run linter | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Run syntax rules check with ESLint | |
run: yarn lint | |
build-with-canvas: | |
env: | |
TEST_SUITE: 'node-canvas' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Run Canvas tests with Node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install required image manipulation packages with APT | |
run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev | |
- name: Setup HOSTS file for Web Platform Test server | |
run: ./test/web-platform-tests/tests/wpt make-hosts-file | sudo tee -a /etc/hosts | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Run tests | |
run: yarn add canvas && yarn test --retries 1 | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Run tests with Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup HOSTS file for Web Platform Test server | |
run: ./test/web-platform-tests/tests/wpt make-hosts-file | sudo tee -a /etc/hosts | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Run tests | |
run: yarn test --retries 1 |