diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index b923cd3..0000000 --- a/.github/main.workflow +++ /dev/null @@ -1,15 +0,0 @@ -workflow "Main" { - on = "push" - resolves = ["composer install", "PHPQA"] -} - -action "PHPQA" { - uses = "docker://mickaelandrieu/phpqa-ga" - secrets = ["GITHUB_TOKEN"] - args = "--report --output=cli" -} - -action "composer install" { - uses = "MilesChou/composer-action@master" - args = "install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist" -} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..d88ecca --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,31 @@ +name: "Coverage" + +on: + push: + branches: [master] + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: "Install PHP with coverage" + uses: shivammathur/setup-php@v2 + with: + php-version: "8.5" + coverage: pcov + tools: composer:v2 + + - name: "Install dependencies" + run: composer install --no-interaction --no-progress + + - name: "Run tests with coverage" + run: vendor/bin/phpunit --coverage-clover clover.xml + + - name: "Upload coverage to Codecov" + uses: codecov/codecov-action@v6 + with: + files: clover.xml + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/phpqa.yml b/.github/workflows/phpqa.yml index cd64e9b..14f7ce4 100644 --- a/.github/workflows/phpqa.yml +++ b/.github/workflows/phpqa.yml @@ -25,28 +25,3 @@ jobs: uses: docker://jakzal/phpqa:php8.5 with: args: deptrac --config-file=depfile.yaml --no-interaction --ansi - - coverage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - - name: "Install PHP with coverage" - uses: shivammathur/setup-php@v2 - with: - php-version: "8.5" - coverage: pcov - tools: composer:v2 - - - name: "Install dependencies" - run: composer install --no-interaction --no-progress - - - name: "Run tests with coverage" - run: vendor/bin/phpunit --coverage-clover clover.xml - - - name: "Upload coverage to Codecov" - uses: codecov/codecov-action@v6 - with: - files: clover.xml - fail_ci_if_error: false - token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.whitesource b/.whitesource deleted file mode 100644 index d66cdff..0000000 --- a/.whitesource +++ /dev/null @@ -1,8 +0,0 @@ -{ - "checkRunSettings": { - "vulnerableCheckRunConclusionLevel": "success" - }, - "issueSettings": { - "minSeverityLevel": "LOW" - } -} \ No newline at end of file