From a7e124e602fea79eaa029c3b3191f8105cf2aac4 Mon Sep 17 00:00:00 2001 From: Brian Hogg Date: Wed, 14 Feb 2024 12:27:21 +0100 Subject: [PATCH 1/2] Removing references to deleted workflow --- .github/workflows/workflow-sync.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/workflow-sync.yml b/.github/workflows/workflow-sync.yml index b6a8af0..d36e645 100644 --- a/.github/workflows/workflow-sync.yml +++ b/.github/workflows/workflow-sync.yml @@ -14,7 +14,6 @@ on: # PHP Files. - .github/workflow-templates/coding-standards.yml - - .github/workflow-templates/php-test-coverage.yml - .github/workflow-templates/test-phpunit.yml # Utils. @@ -55,7 +54,6 @@ env: PHP_FILES: | .github/workflow-templates/coding-standards.yml=.github/workflows/coding-standards.yml - .github/workflow-templates/php-test-coverage.yml=.github/workflows/php-test-coverage.yml .github/workflow-templates/test-phpunit.yml=.github/workflows/test-phpunit.yml PHP_REPOS: | gocodebox/lifterlms From db130eba9a215db36917fc88deec7ca463860bda Mon Sep 17 00:00:00 2001 From: Brian Hogg Date: Wed, 14 Feb 2024 12:51:34 +0100 Subject: [PATCH 2/2] Removing php test coverage / codeclimate file --- .../workflow-templates/php-test-coverage.yml | 75 ------------------- 1 file changed, 75 deletions(-) delete mode 100644 .github/workflow-templates/php-test-coverage.yml diff --git a/.github/workflow-templates/php-test-coverage.yml b/.github/workflow-templates/php-test-coverage.yml deleted file mode 100644 index f4f0140..0000000 --- a/.github/workflow-templates/php-test-coverage.yml +++ /dev/null @@ -1,75 +0,0 @@ -### -# -# This workflow file is deployed into this repository via the "Sync Organization Files" workflow -# -# Direct edits to this file are at risk of being overwritten by the next sync. All edits should be made -# to the source file. -# -# @see Sync workflow {@link https://github.com/gocodebox/.github/actions/workflows/workflow-sync.yml} -# @see Workflow template {@link https://github.com/gocodebox/.github/blob/trunk/.github/workflow-templates/php-test-coverage.yml} -# -### -name: PHP Code Coverage Report - -on: - workflow_dispatch: - inputs: - cache-suffix: - description: Cache suffix - type: string - pull_request: - # Once daily at 00:00 UTC. -# schedule: -# - cron: '0 0 * * *' - -concurrency: - group: ${{ github.workflow }}-${{ 'pull_request' == github.event_name && github.head_ref || github.sha }} - cancel-in-progress: true - - -jobs: - - check-secret: - name: "Check for required secret" - runs-on: ubuntu-latest - outputs: - has-secret: ${{ steps.check-secret.outputs.has-secret }} - steps: - - name: Test secret - id: check-secret - run: | - if [ ! -z "${{ secrets.CC_TEST_REPORTER_ID }}" ]; then - echo "::set-output name=has-secret::true" - fi - - test: - name: "PHP Test Coverage" - runs-on: ubuntu-latest - - needs: check-secret - - if: ${{ 'true' == needs.check-secret.outputs.has-secret }} - - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup Environment - uses: gocodebox/.github/.github/actions/setup-phpunit@trunk - with: - php-version: "8.0" - wp-version: "5.8" - coverage: "xdebug" - env-file: ".github/.env.php-test-coverage" - deploy-key: ${{ secrets.LLMS_DEPLOY_KEY }} - secrets: ${{ toJSON( secrets ) }} - cache-suffix: ${{ inputs.cache-suffix }} - - - name: Run Tests with Coverage & Upload Coverage Report - uses: paambaati/codeclimate-action@v2.7.5 - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - RUN_CODE_COVERAGE: "1" - with: - coverageCommand: composer run tests -- --coverage-clover clover.xml