Skip to content

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

ci: skip Go checks when no Go files changed

Mario348ce9ea2a89
diff --git a/.github/workflows/go-verify.yml b/.github/workflows/go-verify.yml
index 907e5578..215e9a58 100644
--- a/.github/workflows/go-verify.yml
+++ b/.github/workflows/go-verify.yml
@@ -24,8 +24,29 @@ permissions:
contents: read
jobs:
+ # Check which files changed to conditionally run jobs
+ changes:
+ name: Detect Changes
+ runs-on: ubuntu-latest
+ outputs:
+ go: ${{ steps.filter.outputs.go }}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dorny/paths-filter@v3
+ id: filter
+ with:
+ filters: |
+ go:
+ - '**.go'
+ - 'go.mod'
+ - 'go.sum'
+ - 'cmd/**'
+ - 'internal/**'
+
build:
name: Build & Test
+ needs: changes
+ if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -65,6 +86,8 @@ jobs:
lint:
name: Lint
+ needs: changes
+ if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -80,6 +103,8 @@ jobs:
security:
name: Security Scan
+ needs: changes
+ if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 3e70cb9a..46687678 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -24,8 +24,30 @@ permissions:
contents: read
jobs:
+ # Check which files changed to conditionally run integration tests
+ changes:
+ name: Detect Changes
+ runs-on: ubuntu-latest
+ outputs:
+ go: ${{ steps.filter.outputs.go }}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dorny/paths-filter@v3
+ id: filter
+ with:
+ filters: |
+ go:
+ - '**.go'
+ - 'go.mod'
+ - 'go.sum'
+ - 'cmd/**'
+ - 'internal/**'
+ - 'tests/integration/**'
+
integration:
name: Integration Tests
+ needs: changes
+ if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
timeout-minutes: 15
steps: