Skip to content

Commit 52d7a63

Browse files
authored
Ensure "Fix Styling" completes before running push tests
1 parent 9916773 commit 52d7a63

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/pint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515

1616
jobs:
1717
php-code-styling:
18+
name: Fix Styling
1819
runs-on: ubuntu-latest
1920

2021
steps:
@@ -26,7 +27,7 @@ jobs:
2627
- name: Fix PHP code style issues
2728
uses: aglipanci/laravel-pint-action@latest
2829

29-
- name: Commit changes
30+
- name: Commit styling changes
3031
uses: stefanzweifel/git-auto-commit-action@v5
3132
with:
3233
commit_message: Fix styling

.github/workflows/run-tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
extensions: dom, curl, libxml, mbstring, zip, pcntl, pcov, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, :psr
2727

2828
steps:
29+
- name: Wait for styling to finish
30+
uses: lewagon/[email protected]
31+
with:
32+
ref: ${{ github.ref }}
33+
check-name: 'Fix Styling'
34+
repo-token: ${{ secrets.GITHUB_TOKEN }}
35+
wait-interval: 10
36+
2937
- name: Checkout code
3038
uses: actions/checkout@v4
3139

@@ -105,6 +113,14 @@ jobs:
105113
extensions: dom, curl, libxml, mbstring, zip, pcntl, pcov, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, :psr
106114

107115
steps:
116+
- name: Wait for styling to finish
117+
uses: lewagon/[email protected]
118+
with:
119+
ref: ${{ github.ref }}
120+
check-name: 'Fix Styling'
121+
repo-token: ${{ secrets.GITHUB_TOKEN }}
122+
wait-interval: 10
123+
108124
- name: Checkout code
109125
uses: actions/checkout@v4
110126

0 commit comments

Comments
 (0)