Bump @types/node from 22.5.0 to 22.5.2 in the types group across 1 directory #4710
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'feature/**' | |
- 'v[0-9]' | |
workflow_dispatch: | |
inputs: | |
runner: | |
description: Run tests on | |
type: choice | |
default: ubuntu-latest | |
options: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ github.event.inputs.runner || 'ubuntu-latest' }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.7 | |
- name: Restore build | |
uses: actions/cache@v4.0.2 | |
id: build-cache | |
with: | |
key: build-cache-${{ runner.os }}-${{ github.sha }} | |
path: build | |
- name: Setup Node.js | |
uses: actions/setup-node@v4.0.3 | |
if: steps.build-cache.outputs.cache-hit != 'true' | |
with: | |
cache: npm | |
check-latest: true | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
if: steps.build-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Build | |
if: steps.build-cache.outputs.cache-hit != 'true' | |
run: npm run build | |
test: | |
name: ${{ matrix.task.description }} | |
runs-on: ${{ github.event.inputs.runner || 'ubuntu-latest' }} | |
needs: [build] | |
strategy: | |
fail-fast: false | |
matrix: | |
task: | |
- description: Lint Sass | |
run: npm run lint:scss | |
- description: Lint JavaScript | |
run: npm run lint:js | |
- description: Lint HTML | |
run: npm run lint:html --ignore-scripts | |
- description: EditorConfig | |
run: npm run lint:editorconfig | |
- description: Prettier | |
run: npm run lint:prettier | |
- description: TypeScript compiler | |
run: npm run lint:types -- --pretty | |
- description: JavaScript tests | |
run: npx jest --color --maxWorkers=2 | |
- description: Check broken links | |
run: npm run check-links | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.7 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4.0.3 | |
with: | |
cache: npm | |
check-latest: true | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm ci | |
- name: Restore build | |
uses: actions/cache/restore@v4.0.2 | |
with: | |
key: build-cache-${{ runner.os }}-${{ github.sha }} | |
path: build | |
- name: Run task | |
id: task | |
run: ${{ matrix.task.run }} | |
continue-on-error: ${{ matrix.task.continue-on-error || false }} | |
- name: Task warnings | |
if: steps.task.outcome == 'failure' | |
run: echo "::warning title=${{ matrix.task.description }} task failed::Check has been temporarily ignored" |