Merge pull request #3489 from SDWebImage/ci

Try to fix codecov upload issue using token
This commit is contained in:
DreamPiggy 2023-02-07 21:08:22 +08:00 committed by GitHub
commit a47bc00770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -97,6 +97,7 @@ jobs:
env: env:
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app DEVELOPER_DIR: /Applications/Xcode_13.2.1.app
WORKSPACE_NAME: SDWebImage.xcworkspace WORKSPACE_NAME: SDWebImage.xcworkspace
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
strategy: strategy:
matrix: matrix:
iosDestination: ["platform=iOS Simulator,name=iPhone 13 Pro"] iosDestination: ["platform=iOS Simulator,name=iPhone 13 Pro"]
@ -146,9 +147,9 @@ jobs:
set -o pipefail set -o pipefail
export PATH="/usr/local/opt/curl/bin:$PATH" export PATH="/usr/local/opt/curl/bin:$PATH"
curl --version 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) -v -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) -v -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/tvOS' -J '^SDWebImage$' -c -X gcov -F tvos
Build: Build:
name: Build Library name: Build Library

View File

@ -7,8 +7,11 @@ coverage:
project: project:
default: off default: off
ios: ios:
flags: ios flags:
- ios
macos: macos:
flags: macos flags:
- macos
tvos: tvos:
flags: tvos flags:
- tvos