Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

- name: Lint
run: |
npm run lint
npm run format -- --check
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -25,11 +25,6 @@ jobs:
sudo apt-get install -y libgbm-dev jq xvfb
npm ci

- name: Lint
run: |
npm run lint
npm run format -- --check

- name: Install Chrome
uses: browser-actions/setup-chrome@latest
with:
Expand Down Expand Up @@ -70,7 +65,7 @@ jobs:
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
name: coverage-report-${{ matrix.node-version }}
path: coverage/

- name: Run visual tests
Expand Down Expand Up @@ -111,5 +106,5 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: screenshots
name: screenshots-${{ matrix.node-version }}
path: artifacts/
Loading