diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cddcc4..6c8afcb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,9 +17,9 @@ jobs: uses: actions/checkout@v3 - name: Install PHP - uses: shivammathur/setup-php@2.22.0 + uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' extensions: mbstring, intl coverage: none env: @@ -28,7 +28,7 @@ jobs: - name: Get composer cache directory 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 composer dependencies uses: actions/cache@v3 @@ -56,7 +56,7 @@ jobs: uses: actions/checkout@v3 - name: Install PHP - uses: shivammathur/setup-php@2.22.0 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: mbstring, intl, mysql @@ -67,7 +67,7 @@ jobs: - name: Get composer cache directory 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 composer dependencies uses: actions/cache@v3 @@ -80,11 +80,11 @@ jobs: run: composer update --no-interaction --no-progress --optimize-autoloader - name: Run PHPUnit - if: matrix.php != '8.0' + if: matrix.php != '8.1' run: vendor/bin/phpunit - name: Run Infection with PHPUnit - if: matrix.php == '8.0' + if: matrix.php == '8.1' run: | mkdir -p build/logs vendor/bin/phpunit --coverage-xml=build/logs/coverage-xml --log-junit=build/logs/junit.xml