All checks were successful
CI / verify (push) Successful in 47s
The Gitea cache server at 10.0.23.3:42951 is unreachable from the job container. Each cache restore and save hangs ~4m40s on TCP timeout before falling back to a cold run, costing ~9m per job. Removing `cache: pnpm` brings total CI time down to ~45s.
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ci-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 11.0.9
|
|
|
|
# NOTE: `cache: pnpm` is intentionally omitted. The Gitea cache server
|
|
# at 10.0.23.3:42951 is unreachable from the runner container, and each
|
|
# cache restore/save hangs ~4m40s on TCP timeout before failing. With
|
|
# caching off, total CI time is ~45s. Re-enable once the act_runner
|
|
# cache backend is reachable from inside the job container.
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Type-check
|
|
run: pnpm types
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|
|
|
|
- name: Test
|
|
run: pnpm test --run
|