feat(channels): add Shangwutong connector

This commit is contained in:
2026-08-03 10:13:40 +08:00
parent 96f5c796a6
commit 897b4e018f
126 changed files with 20207 additions and 272 deletions
+22 -3
View File
@@ -99,10 +99,29 @@ jobs:
with:
files: backend/coverage.out
shangwutong:
name: Shangwutong Connector
runs-on: ubuntu-latest
defaults:
run:
working-directory: channels/shangwutong
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26.4'
cache-dependency-path: channels/shangwutong/go.sum
- name: Verify sqlc generation
run: go tool sqlc generate && git diff --exit-code -- db/generated
- name: Test with race detector
run: go test -race ./...
- name: Vet and build
run: go vet ./... && go build -o /tmp/shangwutong-build-check ./cmd/shangwutong
# ---- Stage 2: Security Scan ----
security:
name: Security Scan
needs: test
needs: [test, shangwutong]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -135,7 +154,7 @@ jobs:
# ---- Stage 3: Build Docker Image ----
build:
name: Build Docker Image
needs: [test, security]
needs: [test, shangwutong, security]
runs-on: ubuntu-latest
if: github.event_name == 'push' # Only build on push, not PRs
permissions:
@@ -196,4 +215,4 @@ jobs:
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'
severity: 'CRITICAL,HIGH'