diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 52c99a8..a666824 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,36 +12,22 @@ jobs: max-parallel: 4 matrix: operatingSystem: [ubuntu-latest, windows-latest] - phpVersion: ['7.4', '8.0', '8.1'] + phpVersion: ['8.1', '8.2', '8.3'] fail-fast: false + runs-on: ${{ matrix.operatingSystem }} name: ${{ matrix.operatingSystem }} / PHP ${{ matrix.phpVersion }} env: extensions: curl, fileinfo, openssl, zip key: winter-packager-v1 - steps: - - name: Cancel previous incomplete runs - uses: styfle/cancel-workflow-action@0.8.0 - with: - access_token: ${{ github.token }} - - name: Checkout changes - uses: actions/checkout@v2 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - - name: Setup extension cache - id: extcache - uses: shivammathur/cache-extensions@v1 - with: - php-version: ${{ matrix.phpVersion }} - extensions: ${{ env.extensions }} - key: ${{ env.key }} - - - name: Cache extensions - uses: actions/cache@v2 - with: - path: ${{ steps.extcache.outputs.dir }} - key: ${{ steps.extcache.outputs.key }} - restore-keys: ${{ steps.extcache.outputs.key }} + steps: + - name: Checkout changes + uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 @@ -55,7 +41,7 @@ jobs: run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composercache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} @@ -65,7 +51,7 @@ jobs: run: composer install --no-interaction --no-progress --no-scripts - name: Setup problem matchers for PHPUnit - if: matrix.phpVersion == '7.4' + if: matrix.phpVersion == '8.3' run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run tests