Skip to content

Commit 02244dd

Browse files
committed
Updated GitHub workflow files
- Updated cache & checkout actions - Added php 8.2 checks - Added expansion placeholder for php extensions (template)
1 parent 0136bb0 commit 02244dd

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
php-versions: ['7.4']
1212
env:
1313
extensions: pcov, dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter
14-
key: cache-v2
14+
key: cache-v3
1515
steps:
1616
- name: "Checkout"
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
- name: "Setup PHP extensions cache environment"
1919
id: cache-env
2020
uses: shivammathur/cache-extensions@v1
@@ -23,7 +23,7 @@ jobs:
2323
extensions: ${{ env.extensions }}
2424
key: ${{ env.key }}
2525
- name: "Cache PHP extensions"
26-
uses: actions/cache@v2
26+
uses: actions/cache@v3
2727
with:
2828
path: ${{ steps.cache-env.outputs.dir }}
2929
key: ${{ steps.cache-env.outputs.key }}
@@ -38,7 +38,7 @@ jobs:
3838
- name: "Validate composer.json"
3939
run: composer validate
4040
- name: "Setup composer cache"
41-
uses: actions/cache@v2
41+
uses: actions/cache@v3
4242
with:
4343
path: ~/.composer/cache
4444
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@@ -69,15 +69,15 @@ jobs:
6969
strategy:
7070
matrix:
7171
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
72-
php-versions: ['8.0', '8.1']
72+
php-versions: ['8.0', '8.1', '8.2']
7373
env:
7474
extensions: dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter
75-
key: cache-v2
75+
key: cache-v3
7676
steps:
7777
- name: "Turn off git EOL conversion"
7878
run: git config --global core.autocrlf false
7979
- name: "Checkout"
80-
uses: actions/checkout@v2
80+
uses: actions/checkout@v3
8181
- name: "Setup PHP extensions cache environment"
8282
id: cache-env
8383
uses: shivammathur/cache-extensions@v1
@@ -86,7 +86,7 @@ jobs:
8686
extensions: ${{ env.extensions }}
8787
key: ${{ env.key }}
8888
- name: "Cache PHP extensions"
89-
uses: actions/cache@v2
89+
uses: actions/cache@v3
9090
with:
9191
path: ${{ steps.cache-env.outputs.dir }}
9292
key: ${{ steps.cache-env.outputs.key }}
@@ -99,7 +99,7 @@ jobs:
9999
extensions: ${{ env.extensions }}
100100
ini-values: assert.exception=1, zend.assertions=1
101101
- name: "Setup composer cache"
102-
uses: actions/cache@v2
102+
uses: actions/cache@v3
103103
with:
104104
path: ~/.composer/cache
105105
key: ${{ runner.os }}-php${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }}

template/.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
operating-system: ['ubuntu-latest']
1111
php-versions: ['7.4']
1212
env:
13-
extensions: pcov, dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter
14-
key: cache-v2
13+
extensions: pcov, dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter{original.content}
14+
key: cache-v3
1515
steps:
1616
- name: "Checkout"
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
- name: "Setup PHP extensions cache environment"
1919
id: cache-env
2020
uses: shivammathur/cache-extensions@v1
@@ -23,7 +23,7 @@ jobs:
2323
extensions: ${{ env.extensions }}
2424
key: ${{ env.key }}
2525
- name: "Cache PHP extensions"
26-
uses: actions/cache@v2
26+
uses: actions/cache@v3
2727
with:
2828
path: ${{ steps.cache-env.outputs.dir }}
2929
key: ${{ steps.cache-env.outputs.key }}
@@ -38,7 +38,7 @@ jobs:
3838
- name: "Validate composer.json"
3939
run: composer validate
4040
- name: "Setup composer cache"
41-
uses: actions/cache@v2
41+
uses: actions/cache@v3
4242
with:
4343
path: ~/.composer/cache
4444
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@@ -69,15 +69,15 @@ jobs:
6969
strategy:
7070
matrix:
7171
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
72-
php-versions: ['8.0', '8.1']
72+
php-versions: ['8.0', '8.1', '8.2']
7373
env:
74-
extensions: dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter
75-
key: cache-v2
74+
extensions: dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter{original.content}
75+
key: cache-v3
7676
steps:
7777
- name: "Turn off git EOL conversion"
7878
run: git config --global core.autocrlf false
7979
- name: "Checkout"
80-
uses: actions/checkout@v2
80+
uses: actions/checkout@v3
8181
- name: "Setup PHP extensions cache environment"
8282
id: cache-env
8383
uses: shivammathur/cache-extensions@v1
@@ -86,7 +86,7 @@ jobs:
8686
extensions: ${{ env.extensions }}
8787
key: ${{ env.key }}
8888
- name: "Cache PHP extensions"
89-
uses: actions/cache@v2
89+
uses: actions/cache@v3
9090
with:
9191
path: ${{ steps.cache-env.outputs.dir }}
9292
key: ${{ steps.cache-env.outputs.key }}
@@ -99,7 +99,7 @@ jobs:
9999
extensions: ${{ env.extensions }}
100100
ini-values: assert.exception=1, zend.assertions=1
101101
- name: "Setup composer cache"
102-
uses: actions/cache@v2
102+
uses: actions/cache@v3
103103
with:
104104
path: ~/.composer/cache
105105
key: ${{ runner.os }}-php${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }}

0 commit comments

Comments
 (0)