Files
gongxue-base/.gitea/workflows/ci.yml
T
Gitea Operations 2c076ec138
CI / check (pull_request) Failing after 5m55s
Dependency Check / check (pull_request) Successful in 5m46s
ci: update Gitea checkout host after domain migration
2026-08-12 15:56:04 +08:00

44 lines
955 B
YAML

name: CI
env:
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
NPM_CONFIG_AUDIT: "false"
NPM_CONFIG_FUND: "false"
NPM_CONFIG_REPLACE_REGISTRY_HOST: always
CI: "true"
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
container: node:22.22.0-bookworm
timeout-minutes: 30
steps:
- name: Checkout
uses: https://gitee.com/mirrors_actions/checkout@v4
with:
github-server-url: https://git.tjszsb.com
fetch-depth: 1
- name: Install dependencies
run: npm ci
- name: Lint
run: |
npm run lint -w @gongxue/admin
npm run lint -w @gongxue/server -- --quiet
- name: Type check
run: npm run typecheck
- name: Build frontend
run: npm run build -w @gongxue/admin
- name: Run backend tests
run: npm run test -w @gongxue/server -- --runInBand --forceExit