Files
comingsoon/.gitea/workflows/ci.yaml
T
fristy bfff4aeb35
CI / Code Health (pull_request) Successful in 8s
CI / Lint & Build (pull_request) Successful in 23s
ci: drop setup steps the runner image already covers
ubuntu-latest is git.fristy.net/actions/runner-images, which ships node 26.13.0, pnpm 12.16.1 (matching packageManager), python3 and pipx. setup-python 3.15 fails outright: that version is not in the python-versions manifest for this platform.
2026-11-04 15:17:08 +03:00

50 lines
1.5 KiB
YAML

name: CI
on:
pull_request:
push:
branches: ["main"]
jobs:
check:
name: Lint & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Get pnpm store path
id: pnpm-store
run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Cache pnpm store
uses: actions/cache@v6
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
health:
name: Code Health
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Scan with desloppify (CI profile, objective only)
continue-on-error: true
run: |
pipx run --spec desloppify desloppify scan --profile ci --path . --no-badge
- name: Upload scorecard
uses: actions/upload-artifact@v7
with:
name: desloppify-scorecard
path: scorecard.png
if-no-files-found: ignore