Move CI workflows to repo root .gitea/workflows/ (Gitea requires root location)
Some checks failed
CI — P3 Alert / test (push) Has been cancelled
CI — P5 Cost / test (push) Has been cancelled
CI — P2 Drift (Go + Node) / agent (push) Failing after 46s
CI — P2 Drift (Go + Node) / saas (push) Failing after 1m17s
CI — P4 Portal / test (push) Failing after 16s
CI — P6 Run / saas (push) Failing after 17s
CI — P1 Route (Rust) / test (push) Failing after 11m13s
Some checks failed
CI — P3 Alert / test (push) Has been cancelled
CI — P5 Cost / test (push) Has been cancelled
CI — P2 Drift (Go + Node) / agent (push) Failing after 46s
CI — P2 Drift (Go + Node) / saas (push) Failing after 1m17s
CI — P4 Portal / test (push) Failing after 16s
CI — P6 Run / saas (push) Failing after 17s
CI — P1 Route (Rust) / test (push) Failing after 11m13s
- 6 per-product CI workflows with path filters - P1: Rust (cargo test + clippy + fmt) - P2: Go agent (go test + vet) + Node SaaS (tsc + npm test) - P3-P6: Node (npm ci + tsc + npm test) - Removed old per-product .gitea dirs (Gitea ignores non-root workflows)
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
name: CI - SaaS
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'products/02-iac-drift-detection/saas/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'products/02-iac-drift-detection/saas/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Install deps
|
||||
run: npm ci
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
|
||||
- name: Type check
|
||||
run: npx tsc --noEmit
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
@@ -1,62 +0,0 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
agent-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Test agent
|
||||
run: go test ./...
|
||||
working-directory: products/02-iac-drift-detection/agent
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
working-directory: products/02-iac-drift-detection/agent
|
||||
|
||||
saas-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Install deps
|
||||
run: npm ci
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
|
||||
- name: Type check
|
||||
run: npx tsc --noEmit
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
|
||||
agent-build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: agent-test
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Build agent binaries
|
||||
run: |
|
||||
GOOS=linux GOARCH=amd64 go build -o dist/drift-linux-amd64 ./cmd/drift
|
||||
GOOS=darwin GOARCH=arm64 go build -o dist/drift-darwin-arm64 ./cmd/drift
|
||||
GOOS=windows GOARCH=amd64 go build -o dist/drift-windows-amd64.exe ./cmd/drift
|
||||
working-directory: products/02-iac-drift-detection/agent
|
||||
@@ -1,19 +0,0 @@
|
||||
name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: ['products/02-iac-drift-detection/saas/**']
|
||||
|
||||
jobs:
|
||||
deploy-saas:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
|
||||
- name: Deploy SaaS to Fly.io
|
||||
run: flyctl deploy --config fly.toml --remote-only
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
env:
|
||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||
Reference in New Issue
Block a user