Skip to content

Commit

Permalink
LPD-15905 Upgrade deprecated actions to Node 20
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
christiaan committed Jun 18, 2024
1 parent 55ad290 commit c915f8c
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,40 @@ on: push

jobs:
test-php7_2:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
prefer: ["prefer-stable", "prefer-lowest"]
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer:v2

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

- name: Run tests
run: make check
test-php8:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
prefer: [ "prefer-stable", "prefer-lowest" ]
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.3'
tools: composer:v2

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

Expand Down

0 comments on commit c915f8c

Please sign in to comment.