Files
dd0c/.gitea/workflows/ci-p2-drift.yml
Max Mayfield be2205a81c Fix CI: use npm ci --include=dev and node_modules/.bin/tsc to avoid global shim
NAS runner's npx tsc resolves to a global shim that says 'This is not the tsc
command you are looking for'. Using the local binary directly fixes it.
2026-03-01 06:54:32 +00:00

43 lines
1.2 KiB
YAML

name: CI — P2 Drift (Go + Node)
on:
push:
branches: [main]
paths: ['products/02-iac-drift-detection/**']
pull_request:
paths: ['products/02-iac-drift-detection/**']
jobs:
agent:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
cd $GITHUB_WORKSPACE
- name: Check Go
run: go version
- name: Test agent
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go test ./...
- name: Vet
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go vet ./...
saas:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
cd $GITHUB_WORKSPACE
- name: Install deps
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm ci --include=dev
- name: Type check
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && ./node_modules/.bin/tsc --noEmit
- name: Test
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test