From 20f9953b1a58efc5441120c6c546affa5b6e4af7 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 5 Sep 2021 16:48:08 +0200 Subject: [PATCH] Fix actions --- .github/workflows/main.yml | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7eedbce..a70c134 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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"