From dc4d4fe6abdfd3c17f21772f15a2d51de0302fa0 Mon Sep 17 00:00:00 2001 From: MiBo Date: Fri, 12 Jan 2024 20:54:37 +0100 Subject: [PATCH] fix(Repo): Actions --- .github/workflows/main.yml | 36 ---------------------------- .github/workflows/min-stability.yml | 4 ++-- .github/workflows/phpcodesniffer.yml | 5 ++++ .github/workflows/phpcoverage.yml | 5 ++++ .github/workflows/phpstan.yml | 5 ++++ .github/workflows/phpunit.yml | 7 +++++- .github/workflows/vendor-check.yml | 30 +++++++++++++++++++++++ .idea/php-docker-settings.xml | 15 ++++++++++++ 8 files changed, 68 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/vendor-check.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index e4127bb..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Main - -on: - push: - branches: - - "**" - pull_request: - branches: [ "master" ] - schedule: - - cron: "0 1 * * *" - -permissions: - contents: read - -jobs: - standard: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Composer Install - run: composer install --prefer-dist --no-progress - - - name: PHPUnit - 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/min-stability.yml b/.github/workflows/min-stability.yml index 327cb8c..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 @@ -27,4 +27,4 @@ jobs: 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 index 53351c3..351c422 100644 --- a/.github/workflows/phpcodesniffer.yml +++ b/.github/workflows/phpcodesniffer.yml @@ -16,6 +16,11 @@ 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 diff --git a/.github/workflows/phpcoverage.yml b/.github/workflows/phpcoverage.yml index 47d34bf..49b03fa 100644 --- a/.github/workflows/phpcoverage.yml +++ b/.github/workflows/phpcoverage.yml @@ -18,6 +18,11 @@ 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 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index c2adca4..5151131 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -16,6 +16,11 @@ 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 diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 8d80c1a..8fd51a6 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -5,7 +5,7 @@ on: branches: - "**" pull_request: - branches: [ "master" ] + branches: [ "main" ] schedule: - cron: "0 1 * * *" @@ -20,6 +20,11 @@ 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 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 diff --git a/.idea/php-docker-settings.xml b/.idea/php-docker-settings.xml index f89d656..bb38366 100644 --- a/.idea/php-docker-settings.xml +++ b/.idea/php-docker-settings.xml @@ -18,6 +18,21 @@ + + + + + + +