diff --git a/.github/workflows/build-changelog.yml b/.github/workflows/build-changelog.yml index 2c22dfb..65b9151 100644 --- a/.github/workflows/build-changelog.yml +++ b/.github/workflows/build-changelog.yml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Run - uses: release-drafter/release-drafter@v6 + uses: release-drafter/release-drafter@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index e1b88f1..84f82ac 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -47,7 +47,7 @@ jobs: - name: Install PHP dependencies run: | if [ "${{ matrix.type }}" != "Phpunit" ] && [ "${{ matrix.type }}" != "StaticAnalysis" ]; then composer remove --no-interaction --no-update phpunit/phpunit ergebnis/phpunit-slow-test-detector --dev; fi - if [ "${{ matrix.type }}" != "CodingStyle" ]; then composer remove --no-interaction --no-update friendsofphp/php-cs-fixer ergebnis/composer-normalize --dev && composer --no-interaction --no-update require jdorn/sql-formatter; fi + if [ "${{ matrix.type }}" != "CodingStyle" ]; then composer remove --no-interaction --no-update friendsofphp/php-cs-fixer ergebnis/composer-normalize --dev; fi if [ "${{ matrix.type }}" != "StaticAnalysis" ]; then composer remove --no-interaction --no-update phpstan/\* behat/\* --dev; fi composer update --ansi --prefer-dist --no-interaction --no-progress --optimize-autoloader @@ -67,7 +67,7 @@ jobs: if: matrix.type == 'StaticAnalysis' run: | echo "memory_limit = 2G" > /usr/local/etc/php/conf.d/custom-memory-limit.ini - vendor/bin/phpstan analyse + vendor/bin/phpstan analyse -v unit-test: name: Unit @@ -194,7 +194,7 @@ jobs: if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-mssql.cov; fi - name: "Run tests: Oracle - PDO (only for coverage or cron)" - if: (success() || failure()) && github.event_name == 'schedule' + if: (success() || failure()) && (env.LOG_COVERAGE || github.event_name == 'schedule') env: DB_DSN: "pdo_oci:dbname=oracle/free" DB_USER: system @@ -204,15 +204,15 @@ jobs: php -d opcache.enable_cli=1 vendor/bin/phpunit --exclude-group none $(if [ -n "$LOG_COVERAGE" ]; then echo --coverage-text; else echo --no-coverage; fi) --fail-on-warning --fail-on-risky $(if vendor/bin/phpunit --version | grep -q '^PHPUnit 9\.'; then echo -v; else echo --fail-on-notice --fail-on-deprecation --display-notices --display-deprecations --display-warnings --display-errors --display-incomplete --display-skipped; fi) if [ -n "$LOG_COVERAGE" ]; then mv coverage/phpunit.cov coverage/phpunit-oracle-pdo.cov; fi - - name: Upload coverage logs 1/2 (only for latest Phpunit) + - name: Upload coverage logs 1/2 (only for coverage) if: env.LOG_COVERAGE run: | ls -l coverage | wc -l php -d memory_limit=2G vendor/bin/phpcov merge coverage/ --clover coverage/merged.xml - - name: Upload coverage logs 2/2 (only for latest Phpunit) + - name: Upload coverage logs 2/2 (only for coverage) if: env.LOG_COVERAGE - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true diff --git a/.gitignore b/.gitignore index ea1efc8..bc63ff3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ local cache *.cache *.cache.* +*.cmd /phpunit.xml /phpunit-*.xml