chore: bump node version to 18.20.6 #454
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: 'ci' | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
- dev | |
paths-ignore: | |
- '.devcontainer/**' | |
- '.github/**' | |
- '.vscode/**' | |
- '.gitignore' | |
- '.npmignore' | |
- 'LICENSE' | |
- 'README.md' | |
push: | |
paths-ignore: | |
- '.devcontainer/**' | |
- '.github/**' | |
- '.vscode/**' | |
- '.gitignore' | |
- '.npmignore' | |
- 'LICENSE' | |
- 'README.md' | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup NodeJS version (from .nvmrc) | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm test --if-present | |
- name: Build | |
run: npm run build --if-present | |
- name: Check style | |
run: npm run style:check --if-present | |
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' |