Fix actions

This commit is contained in:
Daniil Gentili 2021-09-05 16:48:08 +02:00
parent 8a1acbe4e1
commit 20f9953b1a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -46,12 +46,11 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: composer:v2
- name: Setup PHP ${{ matrix.php-version }}
env:
PHP_VERSION: ${{ matrix.php-version }}
run: |
echo "$HOME/.local/php/$PHP_VERSION" >> $GITHUB_PATH
- name: "Install dependencies"
run: "composer update --no-progress --prefer-dist ${{ matrix.flags }}"
- name: "PHPUnit"
@ -62,12 +61,11 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.0"
tools: composer:v2
- name: Setup PHP 8.0
env:
PHP_VERSION: "8.0"
run: |
echo "$HOME/.local/php/$PHP_VERSION" >> $GITHUB_PATH
- name: "Install PHP 8 dependencies"
run: "composer update --no-progress --prefer-dist"
- name: "Tests"
@ -78,12 +76,11 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "7.0"
tools: composer:v2
- name: Setup PHP 7.0
env:
PHP_VERSION: "7.0"
run: |
echo "$HOME/.local/php/$PHP_VERSION" >> $GITHUB_PATH
- name: "Install PHP 8 dependencies"
run: "composer update --no-progress --prefer-dist"
- name: "Tests"