Skip to content

Commit 6bb98a7

Browse files
authored
Adjust Workflow Cache for Issue
1 parent 124bac1 commit 6bb98a7

File tree

3 files changed

+8
-54
lines changed

3 files changed

+8
-54
lines changed

.github/workflows/run-phpstan-pull.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ jobs:
2323
extensions: dom, curl, libxml, mbstring, zip, pcntl, pcov, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2424

2525
steps:
26-
- name: Wait for tests to finish
27-
uses: lewagon/[email protected]
28-
with:
29-
ref: ${{ github.ref }}
30-
running-workflow-name: 'Run Tests Pull'
31-
repo-token: ${{ secrets.GITHUB_TOKEN }}
32-
wait-interval: 20
33-
3426
- name: Checkout code
3527
uses: actions/checkout@v4
3628

@@ -70,8 +62,8 @@ jobs:
7062
- uses: actions/cache@v4
7163
with:
7264
path: ${{ steps.composer-cache.outputs.dir }}
73-
key: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
74-
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
65+
key: phpstan-${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
66+
restore-keys: phpstan-${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
7567

7668
- name: Add token
7769
run: |
@@ -88,17 +80,10 @@ jobs:
8880
- name: Install PHPStan
8981
run: composer require larastan/larastan:^2.0 --no-interaction
9082

91-
- uses: actions/cache/restore@v4
92-
id: larastan-restore
83+
- uses: actions/cache@v4
9384
with:
9485
path: ./build/phpstan
9586
key: phpstan-${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}
9687

9788
- name: Run PHPStan Tests
98-
run: ./vendor/bin/phpstan analyse
99-
100-
- uses: actions/cache/save@v4
101-
id: larastan-save
102-
with:
103-
path: ./build/phpstan
104-
key: phpstan-${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}
89+
run: ./vendor/bin/phpstan analyse

.github/workflows/run-phpstan.yml

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

2828
steps:
29-
- name: Wait for tests to finish
30-
uses: lewagon/[email protected]
31-
with:
32-
ref: ${{ github.ref }}
33-
running-workflow-name: 'Run Standard Tests'
34-
repo-token: ${{ secrets.GITHUB_TOKEN }}
35-
wait-interval: 20
36-
3729
- name: Checkout code
3830
uses: actions/checkout@v4
3931

@@ -73,8 +65,8 @@ jobs:
7365
- uses: actions/cache@v4
7466
with:
7567
path: ${{ steps.composer-cache.outputs.dir }}
76-
key: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
77-
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
68+
key: phpstan-${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
69+
restore-keys: phpstan-${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
7870

7971
- name: Add token
8072
run: |
@@ -91,17 +83,10 @@ jobs:
9183
- name: Install PHPStan
9284
run: composer require larastan/larastan:^2.0 --dev --no-interaction
9385

94-
- uses: actions/cache/restore@v4
95-
id: larastan-restore
86+
- uses: actions/cache@v4
9687
with:
9788
path: ./build/phpstan
9889
key: phpstan-${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}
9990

10091
- name: Run PHPStan Tests
101-
run: ./vendor/bin/phpstan analyse
102-
103-
- uses: actions/cache/save@v4
104-
id: larastan-save
105-
with:
106-
path: ./build/phpstan
107-
key: phpstan-${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}
92+
run: ./vendor/bin/phpstan analyse

.github/workflows/run-tests.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ 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-
running-workflow-name: 'Fix PHP code style issues'
34-
repo-token: ${{ secrets.GITHUB_TOKEN }}
35-
wait-interval: 20
36-
3729
- name: Checkout code
3830
uses: actions/checkout@v4
3931

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

115107
steps:
116-
- name: Wait for styling to finish
117-
uses: lewagon/[email protected]
118-
with:
119-
ref: ${{ github.ref }}
120-
running-workflow-name: 'Fix PHP code style issues'
121-
repo-token: ${{ secrets.GITHUB_TOKEN }}
122-
wait-interval: 20
123-
124108
- name: Checkout code
125109
uses: actions/checkout@v4
126110

0 commit comments

Comments
 (0)