From 5ba15f84cd39a36374d0fb0c669abd1a6d5cef41 Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Fri, 19 May 2023 13:29:17 +1200 Subject: [PATCH] Remove the code cov action from CI checks (#38314) Remove the code cov action. --- .github/workflows/pr-code-coverage.yml | 61 -------------------------- 1 file changed, 61 deletions(-) delete mode 100644 .github/workflows/pr-code-coverage.yml diff --git a/.github/workflows/pr-code-coverage.yml b/.github/workflows/pr-code-coverage.yml deleted file mode 100644 index 3df9ef1d46462..0000000000000 --- a/.github/workflows/pr-code-coverage.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Run code coverage on PR -on: - pull_request: - paths-ignore: - - '**/changelog/**' - workflow_dispatch: -defaults: - run: - shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: {} - -jobs: - test: - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.user.login != 'github-actions[bot]' }} - name: Code coverage (PHP 7.4, WP Latest) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - permissions: - contents: read - services: - database: - image: mysql:5.6 - env: - MYSQL_ROOT_PASSWORD: root - ports: - - 3306:3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - - name: Setup WooCommerce Monorepo - uses: ./.github/actions/setup-woocommerce-monorepo - - - name: Tool versions - run: | - php --version - composer --version - - - name: Build Admin feature config - working-directory: plugins/woocommerce - run: pnpm run build:feature-config - - - name: Init DB and WP - working-directory: plugins/woocommerce - run: bash tests/bin/install.sh woo_test root root 127.0.0.1 latest - - - name: Run unit tests with code coverage. Allow to fail. - working-directory: plugins/woocommerce - run: | - RUN_CODE_COVERAGE=1 bash tests/bin/phpunit.sh - exit 0 - - - name: Send code coverage to Codecov. - run: | - bash <(curl -s https://codecov.io/bash)