ci(gh-action): update node version to 22 #4
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: PR Checks ✅ | |
on: | |
pull_request: | |
jobs: | |
prettier: | |
name: Prettier 🧹 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [22.x] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout code 📚 | |
uses: actions/checkout@v4 | |
- name: Set up Node 🟢 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install dependencies ⚙️ | |
run: npm ci | |
- name: Prettier Check 🧹 | |
run: npm run prettier:check | |
lint: | |
name: Eslint ⬣ | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [22.x] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout code 📚 | |
uses: actions/checkout@v4 | |
- name: Set up Node 🟢 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install dependencies ⚙️ | |
run: npm ci | |
- name: Eslint Check ⬣ | |
run: npm run lint:ci | |
continue-on-error: true | |
- name: Upload Eslint results to GitHub | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: eslint-results.sarif | |
wait-for-processing: true | |
dependency-review: | |
name: Dependency Review | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout code 📚 | |
uses: actions/checkout@v4 | |
- name: Dependency Review | |
uses: actions/dependency-review-action@v4 | |
with: | |
comment-summary-in-pr: on-failure |