Skip to content

ci: update the version packages #415

ci: update the version packages

ci: update the version packages #415

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
jobs:
lint-format:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.5.4
# Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22.14.0'
# Cache pnpm dependencies
- name: Cache pnpm dependencies
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: |
~/.pnpm-store
~/.local/share/pnpm/store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
# Install pnpm
- name: Install pnpm
run: npm install -g pnpm
# Install dependencies
- name: Install dependencies
run: pnpm install --frozen-lockfile
# Run linting
- name: Run lint
run: pnpm lint
build-and-test:
runs-on: ubuntu-latest
needs: lint-format
steps:
# Checkout the repository
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.5.4
# Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22.14.0'
# Restore pnpm dependencies from cache
- name: Restore pnpm dependencies from cache
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: |
~/.pnpm-store
~/.local/share/pnpm/store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
# Install pnpm
- name: Install pnpm
run: npm install -g pnpm
# Install dependencies (this will be fast if cache is hit)
- name: Install dependencies
run: pnpm install --frozen-lockfile
# Build the project
- name: Build
run: pnpm generate
# Run tests
- name: Run tests
run: pnpm test