From cd73b25ff655eabe6db9a8523334dc9f09baacb2 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 3 Sep 2023 16:24:58 +0200 Subject: [PATCH] TEMP/TESTING --- .github/workflows/phpstan.yml | 6 +-- .github/workflows/test.yml | 82 +--------------------------------- .github/workflows/validate.yml | 6 +-- 3 files changed, 8 insertions(+), 86 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 7cf63e6f16..627c6b1976 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -3,9 +3,9 @@ name: PHPStan on: # Run on all pushes and on all pull requests. # Prevent the build from running when there are only irrelevant changes. - push: - paths-ignore: - - '**.md' +# push: +# paths-ignore: +# - '**.md' pull_request: paths-ignore: - '**.md' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1474a1bda..a6c63b5994 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,57 +13,6 @@ on: workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] - - name: "Build Phar on PHP: ${{ matrix.php }}" - - continue-on-error: ${{ matrix.php == '8.3' }} - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On - - - name: Build the phar - run: php scripts/build-phar.php - - - name: Upload the PHPCS phar - uses: actions/upload-artifact@v3 - if: ${{ success() && matrix.php == '8.0' }} - with: - name: phpcs-phar - path: ./phpcs.phar - if-no-files-found: error - retention-days: 28 - - - name: Upload the PHPCBF phar - uses: actions/upload-artifact@v3 - if: ${{ success() && matrix.php == '8.0' }} - with: - name: phpcbf-phar - path: ./phpcbf.phar - if-no-files-found: error - retention-days: 28 - - # Both the below only check a few files which are rarely changed and therefore unlikely to have issues. - # This test is about testing that the phars are functional, *not* about whether the code style complies. - - name: 'PHPCS: check code style using the Phar file to test the Phar is functional' - run: php phpcs.phar ./scripts - - - name: 'PHPCBF: fix code style using the Phar file to test the Phar is functional' - run: php phpcbf.phar ./scripts - test: runs-on: ubuntu-latest needs: build @@ -125,32 +74,5 @@ jobs: - name: 'PHPCS: set the path to PHP' run: php bin/phpcs --config-set php_path php - - name: 'PHPUnit: run the tests on PHP 5.4 - 8.0' - run: vendor/bin/phpunit tests/AllTests.php - - - name: 'PHPCS: check code style without cache, no parallel' - if: ${{ matrix.custom_ini == false && matrix.php != '7.4' }} - run: php bin/phpcs --no-cache --parallel=1 - - - name: 'PHPCS: check code style to show results in PR' - if: ${{ matrix.custom_ini == false && matrix.php == '7.4' }} - id: phpcs - run: php bin/phpcs --no-cache --parallel=1 --report-full --report-checkstyle=./phpcs-report.xml - - - name: Show PHPCS results in PR - if: ${{ always() && steps.phpcs.outcome == 'failure'&& matrix.custom_ini == false && matrix.php == '7.4' }} - run: cs2pr ./phpcs-report.xml - - - name: 'Composer: validate config' - if: ${{ matrix.custom_ini == false }} - run: composer validate --no-check-all --strict - - - name: Download the PHPCS phar - uses: actions/download-artifact@v3 - with: - name: phpcs-phar - - # This test specifically tests that the Phar which will be released works correctly on all PHP versions. - - name: 'PHPCS: check code style using the Phar file' - if: ${{ matrix.custom_ini == false }} - run: php phpcs.phar + - name: 'PHPUnit: run the tests' + run: vendor/bin/phpunit --filter ReloadWithDifferentCaseTest diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 2536610635..a9d9064cd3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -3,9 +3,9 @@ name: Validate on: # Run on all pushes and on all pull requests. # Prevent the build from running when there are only irrelevant changes. - push: - paths-ignore: - - '**.md' +# push: +# paths-ignore: +# - '**.md' pull_request: paths-ignore: - '**.md'