barsa b1ff1e8fd3 Refactor GitHub Workflows to Consolidate Node and pnpm Setup
- Unified Node.js and pnpm setup across deploy, pr-checks, and security workflows by introducing a custom action for streamlined configuration.
- Removed redundant setup steps to enhance workflow clarity and maintainability.
- Updated security workflow to include concurrency control for better job management.
2025-12-25 19:01:00 +09:00

50 lines
919 B
YAML

name: Pull Request Checks
on:
pull_request:
push:
branches:
- main
- master
workflow_dispatch:
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
quality-checks:
name: Code Quality & Security
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node & pnpm
uses: ./.github/actions/setup-node-pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm format:check
- name: Run linter
run: pnpm lint
- name: Run type check
run: pnpm type-check
- name: Run tests
run: pnpm test
- name: Build
run: pnpm build
- name: Verify domain dist is up-to-date
run: pnpm domain:check-dist