chore(deps): update dependency eslint-plugin-testing-library to v7.10… #5177
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
preflight: | |
if: ${{ github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.head.ref != 'main' }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x, 24.x] | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Load node modules cache | |
id: modules-cache | |
uses: actions/cache@v4 | |
timeout-minutes: 5 | |
continue-on-error: true | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.OS }}-modules-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-modules-${{ matrix.node-version }}- | |
- name: install modules | |
run: | | |
npm install --no-audit --loglevel=error --no-update-notifier | |
linting: | |
needs: preflight | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: latest | |
- name: Load node modules cache | |
id: modules-cache | |
uses: actions/cache/restore@v4 | |
timeout-minutes: 5 | |
continue-on-error: false | |
with: | |
fail-on-cache-miss: true | |
path: | | |
**/node_modules | |
key: ${{ runner.OS }}-modules-20.x-${{ hashFiles('**/package-lock.json') }} | |
- name: linting | |
run: | | |
npm run build | |
npm run lint | |
typecheck: | |
needs: preflight | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: latest | |
- name: Load node modules cache | |
id: modules-cache | |
uses: actions/cache/restore@v4 | |
timeout-minutes: 5 | |
continue-on-error: false | |
with: | |
fail-on-cache-miss: true | |
path: | | |
**/node_modules | |
key: ${{ runner.OS }}-modules-20.x-${{ hashFiles('**/package-lock.json') }} | |
- name: typecheck | |
run: | | |
npm run build | |
npm run type-check | |
unit-tests: | |
needs: preflight | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x, 24.x] | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Load node modules cache | |
id: modules-cache | |
uses: actions/cache/restore@v4 | |
timeout-minutes: 5 | |
continue-on-error: false | |
with: | |
fail-on-cache-miss: true | |
path: | | |
**/node_modules | |
key: ${{ runner.OS }}-modules-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
- name: unit testing | |
run: | | |
npm run build -w packages/base/core | |
npm run build -w packages/devtools/devtools | |
npm test -- --coverage --outputFile=test-report.junit.xml run | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
build: | |
needs: preflight | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x, 24.x] | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Load node modules cache | |
id: modules-cache | |
uses: actions/cache/restore@v4 | |
timeout-minutes: 5 | |
continue-on-error: false | |
with: | |
fail-on-cache-miss: true | |
path: | | |
**/node_modules | |
key: ${{ runner.OS }}-modules-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
- name: build package | |
run: | | |
npm run build | |
- name: analyze bundle | |
run: | | |
npm run analyze-bundle | |
env: | |
BUNDLE_ANALYZER_UPLOAD_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
build-docs: | |
needs: preflight | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: lts/* | |
- name: Load node modules cache | |
id: modules-cache | |
uses: actions/cache/restore@v4 | |
timeout-minutes: 5 | |
continue-on-error: false | |
with: | |
fail-on-cache-miss: true | |
path: | | |
**/node_modules | |
key: ${{ runner.OS }}-modules-20.x-${{ hashFiles('**/package-lock.json') }} | |
- name: build docs | |
run: | | |
npm run docs:build |