Skip to content

[Release] Upgrade deps and add tests #233

[Release] Upgrade deps and add tests

[Release] Upgrade deps and add tests #233

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Print head and base refs
run: |
echo "Head ref: ${{ github.head_ref }}"
echo "Base ref: ${{ github.base_ref }}"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm typecheck
- name: Check code quality
run: |
pnpm lint
pnpm format:check
pnpm run --if-present generate
- name: Security Audit
run: pnpm audit --audit-level moderate || true
continue-on-error: true
- name: Security Audit Summary
if: success() || failure()
run: pnpm audit --audit-level moderate || true
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ./dist/
- name: Error handling
if: failure()
run: echo "CI failed. Please check the logs."