Skip to content

Commit 1946ffb

Browse files
committed
fix: update workflows to validate pushes to main
1 parent 953341c commit 1946ffb

5 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/functional-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Functional Tests
22

33
on:
44
pull_request:
5+
push:
6+
branches: [main]
57
workflow_dispatch:
68

79
concurrency:
810
# Heavy Magento bootstrap — cancel superseded PR runs to save CI minutes;
9-
# manual (workflow_dispatch) runs are left to finish.
11+
# let push/main runs finish so main is always validated directly.
1012
group: ${{ github.workflow }}-${{ github.ref }}
1113
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1214

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Lint
22

33
on:
44
pull_request:
5+
push:
6+
branches: [main]
57
workflow_dispatch:
68

79
concurrency:
8-
# Cancel superseded PR runs to save CI minutes; manual (workflow_dispatch)
9-
# runs are left to finish.
10+
# Cancel superseded PR runs to save CI minutes; let push/main runs finish so
11+
# main is always validated directly (catches anything pushed straight to main).
1012
group: ${{ github.workflow }}-${{ github.ref }}
1113
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1214

.github/workflows/magento-compatibility.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Magento Compatibility Test
22

33
on:
44
pull_request:
5+
push:
6+
branches: [main]
57
workflow_dispatch:
68

79
concurrency:
810
# Heavy Magento matrix — cancel superseded PR runs to save CI minutes;
9-
# manual (workflow_dispatch) runs are left to finish.
11+
# let push/main runs finish so main is always validated directly.
1012
group: ${{ github.workflow }}-${{ github.ref }}
1113
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1214

.github/workflows/phpcs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: PHPCS
22

33
on:
44
pull_request:
5+
push:
6+
branches: [main]
57
workflow_dispatch:
68

79
concurrency:
8-
# Cancel superseded PR runs to save CI minutes; manual (workflow_dispatch)
9-
# runs are left to finish.
10+
# Cancel superseded PR runs to save CI minutes; let push/main runs finish so
11+
# main is always validated directly (catches anything pushed straight to main).
1012
group: ${{ github.workflow }}-${{ github.ref }}
1113
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1214

.github/workflows/static-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ name: Static Analysis
88

99
on:
1010
pull_request:
11+
push:
12+
branches: [main]
1113
workflow_dispatch:
1214

1315
concurrency:
1416
# Heavy shared Magento build — cancel superseded PR runs to save CI minutes;
15-
# manual (workflow_dispatch) runs are left to finish.
17+
# let push/main runs finish so main is always validated directly.
1618
group: ${{ github.workflow }}-${{ github.ref }}
1719
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1820

0 commit comments

Comments
 (0)