From d8e156a41e10f1e35cf053183ad2d4df47ba7535 Mon Sep 17 00:00:00 2001 From: Brian Arnold Date: Sun, 9 Nov 2025 09:55:15 -0500 Subject: [PATCH] Adjustments to CI/CD to support codecov. --- .github/workflows/swift.yml | 8 +++++++- README.md | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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)