Skip to content

ci(gh-action): update node version to 22 #4

ci(gh-action): update node version to 22

ci(gh-action): update node version to 22 #4

Workflow file for this run

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