Skip to content

Commit

Permalink
Merge pull request #35 from leviy/master_upgrade-actions
Browse files Browse the repository at this point in the history
LPD-15905 Upgrade deprecated actions to Node 20
  • Loading branch information
christiaan committed Jun 19, 2024
2 parents 55ad290 + c915f8c commit 78ff11c
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 78ff11c

Please sign in to comment.