Files
Tech-Radar-Editor/.github/workflows/ci.yml
T
2026-03-05 21:47:35 +00:00

44 lines
960 B
YAML

name: CI
on:
pull_request:
branches:
- main
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Validate conventional commits
run: pnpm commitlint --from "${{ github.event.pull_request.base.sha }}" --to "${{ github.event.pull_request.head.sha }}" --verbose
- name: Typecheck Svelte package
run: pnpm --filter tech-radar-editor check
- name: Build workspace
run: pnpm -r build