From 205b57cc1df07c6f825c3739ad630a95913cbc6e Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Tue, 7 Feb 2023 16:13:32 +0800 Subject: [PATCH] Try to fix codecov upload issue using token --- .github/workflows/CI.yml | 7 ++++--- codecov.yml | 9 ++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0fdffc7e..128e8009 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -97,6 +97,7 @@ jobs: env: DEVELOPER_DIR: /Applications/Xcode_13.2.1.app WORKSPACE_NAME: SDWebImage.xcworkspace + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} strategy: matrix: iosDestination: ["platform=iOS Simulator,name=iPhone 13 Pro"] @@ -146,9 +147,9 @@ jobs: set -o pipefail export PATH="/usr/local/opt/curl/bin:$PATH" curl --version - bash <(curl -s https://codecov.io/bash) -D './DerivedData/macOS' -J '^SDWebImage$' -c -X gcov -F macos - bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImage$' -c -X gcov -F ios - bash <(curl -s https://codecov.io/bash) -D './DerivedData/tvOS' -J '^SDWebImage$' -c -X gcov -F tvos + bash <(curl -s https://codecov.io/bash) -v -D './DerivedData/macOS' -J '^SDWebImage$' -c -X gcov -F macos + bash <(curl -s https://codecov.io/bash) -v -D './DerivedData/iOS' -J '^SDWebImage$' -c -X gcov -F ios + bash <(curl -s https://codecov.io/bash) -v -D './DerivedData/tvOS' -J '^SDWebImage$' -c -X gcov -F tvos Build: name: Build Library diff --git a/codecov.yml b/codecov.yml index 70efa745..be6150f9 100644 --- a/codecov.yml +++ b/codecov.yml @@ -7,8 +7,11 @@ coverage: project: default: off ios: - flags: ios + flags: + - ios macos: - flags: macos + flags: + - macos tvos: - flags: tvos + flags: + - tvos