Files
gongxue-base/.gitea/workflows/ci.yml

43 lines
925 B
YAML

name: CI
env:
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
NPM_CONFIG_AUDIT: "false"
NPM_CONFIG_FUND: "false"
NPM_CONFIG_PREFER_OFFLINE: "true"
NPM_CONFIG_REPLACE_REGISTRY_HOST: always
CI: "true"
TURBO_UI: stream
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.gongxue100.com
fetch-depth: 1
- name: Install dependencies
run: >-
npm ci
--workspace @gongxue/server
--omit=optional
--ignore-scripts
--no-audit
--no-fund
timeout-minutes: 5
- name: Check server
run: npm run typecheck -w @gongxue/server
timeout-minutes: 5