Skip to content

Commit 3681b09

Browse files
authored
Merge pull request #45 from jackbayliss/update-actions
Update actions
2 parents 27938a0 + 3d432f8 commit 3681b09

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.github/workflows/fix-php-cs.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,33 @@ jobs:
99

1010
steps:
1111
- name: Checkout code
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v6
1313
with:
1414
ref: ${{ github.head_ref }}
1515

16-
- name: Fix PHP code style issues
17-
uses: aglipanci/[email protected]
16+
- uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: '8.5'
19+
coverage: none
20+
21+
- name: Get composer cache directory
22+
id: composer-cache
23+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
24+
25+
- name: Cache dependencies
26+
uses: actions/cache@v5
27+
with:
28+
path: ${{ steps.composer-cache.outputs.dir }}
29+
key: composer-${{ hashFiles('**/composer.lock') }}
30+
restore-keys: ${{ runner.os }}-composer-
31+
32+
- name: Install Composer dependencies
33+
run: composer install --no-interaction --no-progress --prefer-dist
34+
35+
- name: Run Laravel Pint (PSR-12)
36+
run: vendor/bin/pint --parallel
1837

1938
- name: Commit changes
2039
uses: stefanzweifel/git-auto-commit-action@v4
2140
with:
22-
commit_message: Fix styling
41+
commit_message: Fix styling [CI]

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
steps:
4646
- name: Checkout code
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v6
4848

4949
- name: Setup PHP
5050
uses: shivammathur/setup-php@v2

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v6
1515
with:
1616
ref: main
1717

0 commit comments

Comments
 (0)