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"