Skip to content

ci: update the version packages #450

ci: update the version packages

ci: update the version packages #450

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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: '22.14.0'
# Cache pnpm dependencies
- name: Cache pnpm dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: '22.14.0'
# Restore pnpm dependencies from cache
- name: Restore pnpm dependencies from cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
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