chore(ci): update GH Actions php test (#3867)
- php versions should be strings - caching updated to current recommendation - fixed env var name
This commit is contained in:
parent
08d74df6e3
commit
d798859acd
24
.github/workflows/tests.yaml
vendored
24
.github/workflows/tests.yaml
vendored
@ -10,20 +10,18 @@ permissions:
|
|||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3']
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3]
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP ${{ matrix.php }}
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
@ -31,17 +29,11 @@ jobs:
|
|||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
coverage: none
|
coverage: none
|
||||||
env:
|
env:
|
||||||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# - name: Update composer
|
|
||||||
# run: composer update
|
|
||||||
#
|
|
||||||
# - name: Validate composer.json and composer.lock
|
|
||||||
# run: composer validate
|
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user