File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 6363 retention-days : 14
6464
6565 integration :
66- needs : [test]
66+ needs : [lint] # Run in parallel with test to reduce critical path
6767 runs-on : ubuntu-latest
6868 permissions :
6969 contents : read
@@ -212,6 +212,8 @@ jobs:
212212 run : cd pkg/workflow/js && npm test
213213 bench :
214214 needs : [test]
215+ # Only run benchmarks on main branch for performance tracking
216+ if : github.ref == 'refs/heads/main'
215217 runs-on : ubuntu-latest
216218 permissions :
217219 contents : read
@@ -341,6 +343,8 @@ jobs:
341343
342344 fuzz :
343345 needs : [test]
346+ # Only run fuzz tests on main branch (10s is insufficient for PRs)
347+ if : github.ref == 'refs/heads/main'
344348 runs-on : ubuntu-latest
345349 permissions :
346350 contents : read
@@ -375,7 +379,7 @@ jobs:
375379 go test -fuzz=FuzzExpressionParser -fuzztime=10s ./pkg/workflow/
376380
377381 security :
378- needs : [test]
382+ needs : [lint] # Run in parallel with test to reduce critical path
379383 runs-on : ubuntu-latest
380384 permissions :
381385 contents : read
@@ -408,7 +412,9 @@ jobs:
408412 run : make test-security
409413
410414 security-scan :
411- needs : [test]
415+ needs : [lint] # Run in parallel with test to reduce critical path
416+ # Only run security scans on main branch to reduce PR overhead
417+ if : github.ref == 'refs/heads/main'
412418 runs-on : ubuntu-latest
413419 permissions :
414420 contents : read
@@ -452,7 +458,7 @@ jobs:
452458 run : ./gh-aw compile poem-bot ${{ matrix.tool.flag }}
453459
454460 logs-token-check :
455- needs : [test]
461+ needs : [lint] # Run in parallel with test to reduce critical path
456462 runs-on : ubuntu-latest
457463 permissions :
458464 contents : read
You can’t perform that action at this time.
0 commit comments