44 lines
894 B
YAML
44 lines
894 B
YAML
name: Quality Gates
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
matrix:
|
|
node-version: [20]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.12.3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run lint
|
|
run: pnpm lint
|
|
|
|
- name: Check scoped log hygiene
|
|
run: pnpm check:logs
|
|
|
|
- name: Run typecheck
|
|
run: pnpm exec tsc --noEmit --pretty false
|
|
|
|
- name: Check diff hygiene
|
|
run: git diff --check
|
|
|
|
- name: Check tracked local artifacts
|
|
run: pnpm check:artifacts
|