From 75eee4007c68391c966158921be1b8b253a80e34 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 14 Sep 2023 14:18:23 -0700 Subject: [PATCH] chore(ci): upgrade to codecov v4 --- .github/workflows/ci.yml | 6 ++++-- .travis.yml | 16 ---------------- 2 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ee4b54..8fed75f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up php 8.1 uses: shivammathur/setup-php@v2 with: @@ -15,4 +15,6 @@ jobs: - name: Run tests and collect coverage run: vendor/bin/phpunit --coverage-clover coverage.xml . - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 023b52d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: php - -php: - - 7.2 - - 7.3 - - 7.4 - -before_script: - - travis_retry composer self-update - - travis_retry composer install --no-interaction --prefer-source --dev - -script: - - vendor/bin/phpunit --coverage-clover coverage.xml - -after_success: - - bash <(curl -s https://codecov.io/bash)