diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 1f2d2a32..6abe6f7b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -3,6 +3,8 @@ on: branches: - 5.x pull_request: + # Allow manually triggering the workflow. + workflow_dispatch: name: Qa workflow env: phiveGPGKeys: 4AA394086372C20A,D2CCAC42F6295E7D,E82B2FB314E9906E,8A03EA3B385DBAA1,D0254321FB74703A @@ -52,12 +54,14 @@ jobs: name: Unit tests for PHP version ${{ matrix.php-versions }} on ${{ matrix.operating-system }} runs-on: ${{ matrix.operating-system }} strategy: + fail-fast: false matrix: operating-system: - ubuntu-latest - windows-latest - macOS-latest - php-versions: ['7.2', '7.3', '7.4', '8.0'] + php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1'] + env: extensions: mbstring key: cache-v1 # can be any string, change to clear the extension cache. @@ -102,22 +106,12 @@ jobs: GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: phive --no-progress install --copy --trust-gpg-keys ${{ env.phiveGPGKeys }} phpunit:^8.5 - - name: Get composer cache directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache dependencies - uses: actions/cache@v2.1.6 + - name: Install Composer dependencies & cache dependencies + uses: "ramsey/composer-install@v1" with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - - name: Install dependencies - run: composer install --no-interaction --prefer-dist --optimize-autoloader + composer-options: --optimize-autoloader - name: Run PHPUnit - continue-on-error: true run: php tools/phpunit codestyle: @@ -198,19 +192,10 @@ jobs: # tools: psalm # ini-values: memory_limit=2G, display_errors=On, error_reporting=-1 # -# - name: Get composer cache directory -# id: composer-cache -# run: echo "::set-output name=dir::$(composer config cache-files-dir)" -# -# - name: Cache dependencies -# uses: actions/cache@v2.1.6 +# - name: Install Composer dependencies & cache dependencies +# uses: "ramsey/composer-install@v1" # with: -# path: ${{ steps.composer-cache.outputs.dir }} -# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} -# restore-keys: ${{ runner.os }}-composer- -# -# - name: Install dependencies -# run: composer install --no-interaction --prefer-dist --optimize-autoloader +# composer-options: --optimize-autoloader # # - name: Run psalm # run: psalm --output-format=github diff --git a/phive.xml b/phive.xml index 8ce3bbe5..ad74b5a0 100644 --- a/phive.xml +++ b/phive.xml @@ -1,6 +1,6 @@ - +