31 lines
644 B
YAML
31 lines
644 B
YAML
|
|
# Forgejo Actions CI — runs the repo's check gate on every push/PR
|
||
|
|
# Single source of truth: ./script/checks defines what "passing CI" means.
|
||
|
|
---
|
||
|
|
name: CI
|
||
|
|
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
branches: [main]
|
||
|
|
pull_request:
|
||
|
|
|
||
|
|
concurrency:
|
||
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||
|
|
cancel-in-progress: true
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
checks:
|
||
|
|
runs-on: ubuntu-latest
|
||
|
|
steps:
|
||
|
|
- uses: actions/checkout@v4
|
||
|
|
|
||
|
|
- uses: actions/setup-node@v4
|
||
|
|
with:
|
||
|
|
node-version-file: .nvmrc
|
||
|
|
|
||
|
|
- name: Install dependencies
|
||
|
|
run: |
|
||
|
|
corepack enable
|
||
|
|
pnpm i --frozen-lockfile
|
||
|
|
|
||
|
|
- name: Run check gate
|
||
|
|
run: ./script/checks
|