Files
fristydev/.gitea/workflows/ci.yaml
T
fristy 0504baf77b
CI / Lint, Test & Build (pull_request) Failing after 43s
CI / Code Health (pull_request) Successful in 14s
ci: fix desloppify scan path for CI profile
2026-09-12 00:36:46 +03:00

62 lines
1.9 KiB
YAML

name: CI
on:
pull_request:
push:
branches: ["main"]
jobs:
check:
name: Lint, Test & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Get pnpm store path
id: pnpm-store
run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Build
run: pnpm build
health:
name: Code Health
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- 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@v4
with:
name: desloppify-scorecard
path: scorecard.png
if-no-files-found: ignore