Skip to content

Merge pull request #739 from d-zero-dev/renovate/jsdom-28.x #3374

Merge pull request #739 from d-zero-dev/renovate/jsdom-28.x

Merge pull request #739 from d-zero-dev/renovate/jsdom-28.x #3374

Workflow file for this run

name: Test
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version: 24
- name: Enable Corepack and setup Yarn v4
run: |
corepack enable
corepack prepare $(node -p "require('./package.json').packageManager") --activate
yarn --version
- name: Cache dependencies
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
with:
path: .yarn/cache
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-
- name: Install dependencies
run: yarn install --immutable
- name: Cache Playwright browsers
id: cache-playwright-browsers
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ hashFiles('yarn.lock') }}
- name: Install Playwright browsers
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
run: yarn playwright install chromium --with-deps
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Test
run: yarn test