diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index de9c41c..4062d84 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -25,4 +25,10 @@ jobs: xcrun llvm-cov export -format="lcov" \ .build/debug/RolePlayingCorePackageTests.xctest/Contents/MacOS/RolePlayingCorePackageTests \ -instr-profile .build/debug/codecov/default.profdata > coverage.lcov - + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + files: ./coverage.lcov + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + verbose: true diff --git a/README.md b/README.md index eec88fe..e5c5900 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # RolePlayingCore ![Build Status](https://github.com/mrlegowatch/RolePlayingCore/workflows/Swift/badge.svg) -![Code Coverage](https://codecov.io/gh/mrlegowatch/RolePlayingCore/branch/main/graph/badge.svg) +![Code Coverage](https://codecov.io/gh/mrlegowatch/RolePlayingCore/branch/development/graph/badge.svg) ![Swift Version](https://img.shields.io/badge/Swift-5.0-orange.svg) ![Platform](https://img.shields.io/badge/platform-iOS%20%7C%20macOS%20%7C%20Linux-lightgrey.svg) [![License](https://img.shields.io/github/license/mrlegowatch/RolePlayingCore)](LICENSE)