From f5895c348b14a39312593ad8e121234c04033ef3 Mon Sep 17 00:00:00 2001 From: pallavic27 Date: Fri, 19 Jul 2024 11:09:38 +0530 Subject: [PATCH] Delete .github/workflows/pr-code-coverage.yml --- .github/workflows/pr-code-coverage.yml | 58 -------------------------- 1 file changed, 58 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 b98346371..000000000 --- a/.github/workflows/pr-code-coverage.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Run CI -on: - pull_request -jobs: - test: - name: Code coverage (PHP 7.4, WP Latest) - timeout-minutes: 15 - runs-on: ubuntu-latest - 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: - - name: Checkout code - uses: actions/checkout@v2 - with: - fetch-depth: 100 - - - name: Checkout submodules - run: git submodule update --init --recursive - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 7.4 - tools: composer - extensions: mysql - coverage: none - - - name: Tool versions - run: | - php --version - composer --version - - name: Get cached composer directories - uses: actions/cache@v2 - with: - path: | - ./packages - ./vendor - key: ${{ runner.os }}-${{ hashFiles('./composer.lock') }} - - - name: Setup and install composer - run: composer install - - - name: Init DB and WP - run: ./tests/bin/install.sh woo_test root root 127.0.0.1 latest - - - name: Run unit tests with code coverage. Allow to fail. - 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) -t 2c81bcb5-5d5d-4b82-a0d0-56bdfad8422d