Skip to content

Commit cf47386

Browse files
authored
Merge pull request #11 from cerpus/update-actions
update github actions
2 parents 0efa145 + 4ab7ed9 commit cf47386

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/phpunit.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
name: Run PHPUnit
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
branches:
11+
- master
12+
workflow_dispatch:
413

514
jobs:
615
phpunit:
716
name: PHPUnit (PHP ${{ matrix.php-version }}, Laravel ${{ matrix.laravel-constraint }})
8-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-24.04
918

1019
strategy:
1120
fail-fast: false
@@ -28,7 +37,7 @@ jobs:
2837

2938
steps:
3039
- name: Checkout
31-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
3241

3342
- name: Set up PHP
3443
uses: shivammathur/setup-php@v2
@@ -42,7 +51,7 @@ jobs:
4251
echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
4352
4453
- name: Cache dependencies
45-
uses: actions/cache@v2
54+
uses: actions/cache@v4
4655
with:
4756
path: ${{ steps.composer-cache.outputs.dir }}
4857
key: ${{ runner.os }}-php-${{ matrix.php-version }}-laravel-${{ matrix.laravel-constraint }}-composer-${{ hashFiles('**/composer.json') }}

0 commit comments

Comments
 (0)