diff --git a/.github/workflows/min-stability.yml b/.github/workflows/min-stability.yml index 7b31042..5f368e5 100644 --- a/.github/workflows/min-stability.yml +++ b/.github/workflows/min-stability.yml @@ -5,7 +5,7 @@ on: branches: - "**" pull_request: - branches: [ "master" ] + branches: [ "main" ] permissions: contents: read @@ -21,10 +21,10 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' - name: Composer Install run: composer update --prefer-dist --no-progress --prefer-lowest - name: PHPUnit - run: ./vendor/bin/phpunit + run: ./vendor/bin/phpunit --testsuite Full diff --git a/.github/workflows/phpcodesniffer.yml b/.github/workflows/phpcodesniffer.yml new file mode 100644 index 0000000..351c422 --- /dev/null +++ b/.github/workflows/phpcodesniffer.yml @@ -0,0 +1,28 @@ +name: PHP_CodeSniffer + +on: + push: + branches: + - "**" + +permissions: + contents: read + +jobs: + standard: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + + - name: Composer Install + run: composer install --prefer-dist --no-progress + + - name: PHP_CodeSniffer + run: ./vendor/bin/phpcs diff --git a/.github/workflows/main.yml b/.github/workflows/phpcoverage.yml similarity index 71% rename from .github/workflows/main.yml rename to .github/workflows/phpcoverage.yml index e4127bb..49b03fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/phpcoverage.yml @@ -1,11 +1,9 @@ -name: Main +name: PHPCoverage on: push: branches: - "**" - pull_request: - branches: [ "master" ] schedule: - cron: "0 1 * * *" @@ -20,17 +18,16 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + - name: Composer Install run: composer install --prefer-dist --no-progress - - name: PHPUnit + - name: PHPUnitCoverage run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --log-junit junit_report.xml --coverage-clover clover.xml --coverage-text --colors=never - - name: PHPStan - run: ./vendor/bin/phpstan - - - name: PHP_CodeSniffer - run: ./vendor/bin/phpcs - - name: CodeCov uses: codecov/codecov-action@v3 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000..5151131 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,28 @@ +name: PHPStan + +on: + push: + branches: + - "**" + +permissions: + contents: read + +jobs: + standard: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + + - name: Composer Install + run: composer install --prefer-dist --no-progress + + - name: PHPStan + run: ./vendor/bin/phpstan --memory-limit=256M diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..8fd51a6 --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,32 @@ +name: PHPUnit + +on: + push: + branches: + - "**" + pull_request: + branches: [ "main" ] + schedule: + - cron: "0 1 * * *" + +permissions: + contents: read + +jobs: + standard: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + + - name: Composer Install + run: composer install --prefer-dist --no-progress + + - name: PHPUnit + run: XDEBUG_MODE=coverage ./vendor/bin/phpunit diff --git a/.github/workflows/vendor-check.yml b/.github/workflows/vendor-check.yml new file mode 100644 index 0000000..c97916c --- /dev/null +++ b/.github/workflows/vendor-check.yml @@ -0,0 +1,30 @@ +name: Vendor Check + +on: + push: + branches: + - "main" + schedule: + - cron: "0 1 * * *" + +permissions: + contents: read + +jobs: + standard: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + + - name: Composer Install + run: composer install + + - name: Check new major versions of vendor libs + run: composer outdated