Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: jobs always run to report status for required checks

Mariof572507d992e
diff --git a/.github/workflows/go-verify.yml b/.github/workflows/go-verify.yml
index 184bc90f..6a3c66f6 100644
--- a/.github/workflows/go-verify.yml
+++ b/.github/workflows/go-verify.yml
@@ -46,19 +46,28 @@ jobs:
build:
name: Build & Vet
needs: changes
- if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
+ - name: Skip if no Go changes
+ if: needs.changes.outputs.go != 'true'
+ run: |
+ echo "⏭️ No Go files changed, skipping build"
+ echo "This is expected for docs/workflow-only changes"
+
- uses: actions/checkout@v4
+ if: needs.changes.outputs.go == 'true'
- uses: actions/setup-go@v5
+ if: needs.changes.outputs.go == 'true'
with:
go-version: '1.26'
- name: Download deps
+ if: needs.changes.outputs.go == 'true'
run: go mod download
- name: Format check
+ if: needs.changes.outputs.go == 'true'
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
@@ -68,15 +77,19 @@ jobs:
fi
- name: Vet
+ if: needs.changes.outputs.go == 'true'
run: go vet ./...
- name: Build
+ if: needs.changes.outputs.go == 'true'
run: go build -o pinchtab ./cmd/pinchtab
- name: Test with coverage
+ if: needs.changes.outputs.go == 'true'
run: go test ./... -v -count=1 -coverprofile=coverage.out -covermode=atomic
- name: Coverage summary
+ if: needs.changes.outputs.go == 'true'
run: |
coverage=$(go tool cover -func=coverage.out | tail -1)
echo "### Coverage" >> $GITHUB_STEP_SUMMARY
@@ -87,16 +100,22 @@ jobs:
lint:
name: Lint
needs: changes
- if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
+ - name: Skip if no Go changes
+ if: needs.changes.outputs.go != 'true'
+ run: echo "⏭️ No Go files changed, skipping lint"
+
- uses: actions/checkout@v4
+ if: needs.changes.outputs.go == 'true'
- uses: actions/setup-go@v5
+ if: needs.changes.outputs.go == 'true'
with:
go-version: '1.26'
- name: golangci-lint
+ if: needs.changes.outputs.go == 'true'
uses: golangci/golangci-lint-action@v7
with:
version: v2.9.0
@@ -104,22 +123,30 @@ jobs:
security:
name: Security Scan
needs: changes
- if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
+ - name: Skip if no Go changes
+ if: needs.changes.outputs.go != 'true'
+ run: echo "⏭️ No Go files changed, skipping security scan"
+
- uses: actions/checkout@v4
+ if: needs.changes.outputs.go == 'true'
- uses: actions/setup-go@v5
+ if: needs.changes.outputs.go == 'true'
with:
go-version: '1.26'
- name: Install gosec
+ if: needs.changes.outputs.go == 'true'
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
- name: Run gosec
+ if: needs.changes.outputs.go == 'true'
run: gosec -exclude=G301,G302,G304,G306,G404,G107,G115,G703,G704,G705,G706 -fmt=json -out=gosec-results.json ./... || true
- name: Check critical findings
+ if: needs.changes.outputs.go == 'true'
run: |
# Fail on G112 (Slowloris), G204 (command injection)
ISSUES=$(cat gosec-results.json | jq '[.Issues[] | select(.rule_id == "G112" or .rule_id == "G204")] | length')
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 46687678..15257dc0 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -47,17 +47,25 @@ jobs:
integration:
name: Integration Tests
needs: changes
- if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
+ - name: Skip if no Go changes
+ if: needs.changes.outputs.go != 'true'
+ run: |
+ echo "⏭️ No Go files changed, skipping integration tests"
+ echo "This is expected for docs/workflow-only changes"
+
- uses: actions/checkout@v4
+ if: needs.changes.outputs.go == 'true'
- uses: actions/setup-go@v5
+ if: needs.changes.outputs.go == 'true'
with:
go-version: '1.26'
- name: Install Google Chrome (deb, avoids snap hangs)
+ if: needs.changes.outputs.go == 'true'
run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
@@ -66,6 +74,7 @@ jobs:
echo "CHROME_BINARY=/usr/bin/google-chrome" >> $GITHUB_ENV
- name: Run integration tests
+ if: needs.changes.outputs.go == 'true'
run: go test -tags integration -v -timeout 10m -count=1 ./tests/integration/
env:
CI: "true"