From d2a8f87facfea102c576c00ab950598f7d9e7646 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Thu, 9 May 2024 14:52:55 +0200 Subject: [PATCH] Hotfix CI workflow Once this passes and a new release has been tagged this package will be updated to be 8.2+ only. But to still support the current range of supported version this has to be done for now --- .github/workflows/ci.yml | 61 +++++----------------------------------- 1 file changed, 7 insertions(+), 54 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07a526d..130ae32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,67 +1,20 @@ name: Continuous Integration on: - push: pull_request: jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Lint Code Base - uses: docker://github/super-linter:v2.2.0 - composer-install: - strategy: - fail-fast: false - matrix: - php: [7.4, 8.0-rc] - composer: [lowest, current, highest] - needs: lint - runs-on: ubuntu-latest - container: - image: wyrihaximusnet/php:${{ matrix.php }}-nts-alpine3.12-dev-root - steps: - - uses: actions/checkout@v1 - - name: Cache composer packages - uses: actions/cache@v1 - with: - path: ./vendor/ - key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} - - name: Install Dependencies - run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o - if: matrix.composer == 'lowest' - - name: Install Dependencies - run: composer install --ansi --no-progress --no-interaction --prefer-dist -o - if: matrix.composer == 'current' - - name: Install Dependencies - run: composer update --ansi --no-progress --no-interaction --prefer-dist -o - if: matrix.composer == 'highest' qa: strategy: fail-fast: false matrix: - php: [7.4, 8.0-rc] + php: [7.4, "8.0", 8.1, 8.2, 8.3] composer: [lowest, current, highest] - qa: [lint, cs, stan, psalm, unit, infection, composer-require-checker, composer-unused, backward-compatibility-check] - needs: composer-install + qa: [lint, unit, infection, composer-require-checker, composer-unused, backward-compatibility-check] runs-on: ubuntu-latest container: - image: wyrihaximusnet/php:${{ matrix.php }}-nts-alpine3.12-dev-root + image: wyrihaximusnet/php:${{ matrix.php }}-nts-alpine-dev-root steps: - - uses: actions/checkout@v1 - - name: Cache composer packages - uses: actions/cache@v1 - with: - path: ./vendor/ - key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} - - name: Install Dependencies - run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o - if: matrix.composer == 'lowest' - - name: Install Dependencies - run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o - if: matrix.composer == 'current' - - name: Install Dependencies - run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o - if: matrix.composer == 'highest' - - name: Fetch Tags - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - if: matrix.qa == 'backward-compatibility-check' + - uses: actions/checkout@v4 + - run: git config --global --add safe.directory $GITHUB_WORKSPACE # Do this ourself because `actions/checkout@v4 doesn't succeed in doing this + - name: Installation Dependencies + run: composer install --ansi --no-progress --no-interaction --prefer-dist -o - run: make ${{ matrix.qa }}