Rewrite CI workflows: raw shell commands instead of marketplace actions
Host-mode act_runner can't resolve actions/checkout or actions/setup-node. Replaced with direct git clone + npm ci + tsc + npm test.
This commit is contained in:
@@ -10,37 +10,33 @@ jobs:
|
||||
agent:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- name: Check Go
|
||||
run: go version
|
||||
|
||||
- name: Test agent
|
||||
run: go test ./...
|
||||
working-directory: products/02-iac-drift-detection/agent
|
||||
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go test ./...
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
working-directory: products/02-iac-drift-detection/agent
|
||||
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go vet ./...
|
||||
|
||||
saas:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
- 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: npm ci
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm ci
|
||||
|
||||
- name: Type check
|
||||
run: npx tsc --noEmit
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npx tsc --noEmit
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
working-directory: products/02-iac-drift-detection/saas
|
||||
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test
|
||||
|
||||
Reference in New Issue
Block a user