Files
vigilcare-clinical/docs/CICD/infra/examples/caller-dotnet-node.yml
T
Trent 1c1065938f
CI / changes (push) Successful in 47s
CI / frontend (push) Skipped
CI / backend (push) Successful in 43m10s
Pull MinIO from the Gitea-mirrored pgsty image after upstream Hub/Quay removal.
2026-09-30 23:09:01 +08:00

45 lines
1.2 KiB
YAML

# Generic single-product CI caller — copy into .gitea/workflows/ci.yml and rename paths.
# Requires infra/ci-workflows@v1 (collaborative owners must include this repo's owner).
name: CI
on:
push:
branches: [main, master]
paths:
- "src/**"
- "web/**"
- "MyApp.sln"
- ".gitea/workflows/**"
pull_request:
branches: [main, master]
paths:
- "src/**"
- "web/**"
- "MyApp.sln"
- ".gitea/workflows/**"
jobs:
backend:
uses: infra/ci-workflows/.gitea/workflows/dotnet8-ci.yml@v1
with:
working_directory: .
solution: MyApp.sln
postgres_db: myapp_test
isolated_test_projects: |
tests/MyApp.UnitTests/MyApp.UnitTests.csproj
test_projects: |
tests/MyApp.IntegrationTests/MyApp.IntegrationTests.csproj
test_env: |
Jwt__SigningKey=ci-test-jwt-secret-at-least-32-bytes-long!!
frontend:
uses: infra/ci-workflows/.gitea/workflows/node-ci.yml@v1
with:
working_directory: web
node_version: "22"
lint_command: npm run lint && npm run typecheck
extra_check_command: npm test
build_command: npx vite build
build_env: |
VITE_API_BASE_URL=