Skip to content

Commit f14f44c

Browse files
committed
chore: update workflow actions
1 parent e6fefe9 commit f14f44c

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

.github/workflows/default.yml

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
name: CI
22

33
on:
4-
push:
5-
paths:
6-
- '.github/**'
7-
- 'src/**'
8-
- 'tests/**'
9-
- 'composer.lock'
10-
pull_request:
11-
paths:
12-
- '.github/**'
13-
- 'src/**'
14-
- 'tests/**'
15-
- 'composer.lock'
16-
workflow_dispatch:
4+
push:
5+
paths:
6+
- ".github/**"
7+
- "src/**"
8+
- "tests/**"
9+
- "composer.lock"
10+
pull_request:
11+
paths:
12+
- ".github/**"
13+
- "src/**"
14+
- "tests/**"
15+
- "composer.lock"
16+
workflow_dispatch:
1717

1818
jobs:
19-
run:
20-
runs-on: ${{ matrix.operating-system }}
21-
strategy:
22-
matrix:
23-
operating-system: [ubuntu-latest]
24-
php-versions: ['8.1', '8.2', '8.3', '8.4']
25-
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
26-
env:
27-
extensions: intl, pcov
28-
key: cache-v1 # can be any string, change to clear the extension cache.
29-
steps:
30-
- name: Checkout
31-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
32-
33-
- name: Setup cache environment
34-
id: extcache
35-
uses: shivammathur/cache-extensions@d622719c5f9eb1f119bee963028d0c0b984525c5 # v1.9.1
36-
with:
37-
php-version: ${{ matrix.php-versions }}
38-
extensions: ${{ env.extensions }}
39-
key: ${{ env.key }}
40-
41-
- name: Cache extensions
42-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
43-
with:
44-
path: ${{ steps.extcache.outputs.dir }}
45-
key: ${{ steps.extcache.outputs.key }}
46-
restore-keys: ${{ steps.extcache.outputs.key }}
47-
48-
- name: Setup PHP
49-
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 # v2.27.1
50-
with:
51-
php-version: ${{ matrix.php-versions }}
52-
extensions: ${{ env.extensions }}
53-
54-
- name: Dependencies
55-
run: composer update
56-
57-
- name: Lint
58-
run: composer run lint
59-
60-
- name: Test
61-
run: composer run test
19+
run:
20+
runs-on: ${{ matrix.operating-system }}
21+
strategy:
22+
matrix:
23+
operating-system: [ubuntu-latest]
24+
php-versions: ["8.1", "8.2", "8.3", "8.4"]
25+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
26+
env:
27+
extensions: intl, pcov
28+
key: cache-v1 # can be any string, change to clear the extension cache.
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Setup cache environment
34+
id: extcache
35+
uses: shivammathur/cache-extensions@v1
36+
with:
37+
php-version: ${{ matrix.php-versions }}
38+
extensions: ${{ env.extensions }}
39+
key: ${{ env.key }}
40+
41+
- name: Cache extensions
42+
uses: actions/cache@v4
43+
with:
44+
path: ${{ steps.extcache.outputs.dir }}
45+
key: ${{ steps.extcache.outputs.key }}
46+
restore-keys: ${{ steps.extcache.outputs.key }}
47+
48+
- name: Setup PHP
49+
uses: shivammathur/setup-php@v2
50+
with:
51+
php-version: ${{ matrix.php-versions }}
52+
extensions: ${{ env.extensions }}
53+
54+
- name: Dependencies
55+
run: composer update
56+
57+
- name: Lint
58+
run: composer run lint
59+
60+
- name: Test
61+
run: composer run test

0 commit comments

Comments
 (0)