Skip to content

Commit c915f8c

Browse files
committed
LPD-15905 Upgrade deprecated actions to Node 20
Actions using Node 16 are deprecated and should be updated to Node 20 actions. Drop support for composer cache, we almost never build this anyway so I do not want to spend time maintaining a caching strategy that is never used anyway.
1 parent 55ad290 commit c915f8c

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,40 @@ on: push
33

44
jobs:
55
test-php7_2:
6-
runs-on: ubuntu-18.04
6+
runs-on: ubuntu-latest
77
strategy:
88
matrix:
99
prefer: ["prefer-stable", "prefer-lowest"]
1010
steps:
1111
- name: checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313

1414
- name: Setup PHP
1515
uses: shivammathur/setup-php@v2
1616
with:
1717
php-version: '7.2'
1818
tools: composer:v2
1919

20-
- name: Get Composer Cache Directory
21-
id: composer-cache
22-
run: |
23-
echo "::set-output name=dir::$(composer config cache-files-dir)"
24-
- uses: actions/cache@v3
25-
with:
26-
path: ${{ steps.composer-cache.outputs.dir }}
27-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}-${{ matrix.prefer }}-
28-
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
2920
- name: Composer Install
3021
run: composer update --${{ matrix.prefer }} --no-interaction --no-progress --no-ansi
3122

3223
- name: Run tests
3324
run: make check
3425
test-php8:
35-
runs-on: ubuntu-18.04
26+
runs-on: ubuntu-latest
3627
strategy:
3728
matrix:
3829
prefer: [ "prefer-stable", "prefer-lowest" ]
3930
steps:
4031
- name: checkout
41-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
4233

4334
- name: Setup PHP
4435
uses: shivammathur/setup-php@v2
4536
with:
46-
php-version: '8.0'
37+
php-version: '8.3'
4738
tools: composer:v2
4839

49-
- name: Get Composer Cache Directory
50-
id: composer-cache
51-
run: |
52-
echo "::set-output name=dir::$(composer config cache-files-dir)"
53-
- uses: actions/cache@v3
54-
with:
55-
path: ${{ steps.composer-cache.outputs.dir }}
56-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}-${{ matrix.prefer }}-
57-
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
5840
- name: Composer Install
5941
run: composer update --${{ matrix.prefer }} --no-interaction --no-progress --no-ansi
6042

0 commit comments

Comments
 (0)