Merge pull request #739 from d-zero-dev/renovate/jsdom-28.x #3374
This file contains hidden or 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: 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 |