From a7eecb6db3dadaadfdc80045f7920c946c374dc6 Mon Sep 17 00:00:00 2001 From: Brian Arnold Date: Sun, 9 Nov 2025 09:21:50 -0500 Subject: [PATCH] Updated CI/CD to enable code coverage --- .github/workflows/swift.yml | 8 +++++++- README.md | 10 +++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 350f4ae..de9c41c 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -19,4 +19,10 @@ jobs: - name: Build run: swift build -v - name: Run tests - run: swift test -v + run: swift test --enable-code-coverage + - name: Generate coverage report + run: | + xcrun llvm-cov export -format="lcov" \ + .build/debug/RolePlayingCorePackageTests.xctest/Contents/MacOS/RolePlayingCorePackageTests \ + -instr-profile .build/debug/codecov/default.profdata > coverage.lcov + diff --git a/README.md b/README.md index b5e00f7..eec88fe 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -# RolePlayingCore [![Build Status](https://travis-ci.org/mrlegowatch/RolePlayingCore.svg?branch=master)](https://travis-ci.org/mrlegowatch/RolePlayingCore) [![codecov.io](https://codecov.io/gh/mrlegowatch/RolePlayingCore/branch/master/graphs/badge.svg)](https://codecov.io/gh/mrlegowatch/RolePlayingCore/branch/master) +# 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) +![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) This framework provides reusable role playing game core logic in the Swift language. It is a work-in-progress. Capabilities will be provided incrementally over time. @@ -6,10 +10,6 @@ The short-term goal for this project is to provide core logic for implementing a The library is built as a generic Swift Package, and the Example character generator app uses the iOS SDK with SwiftUI. The longer-term goal is to leverage this as a framework or library for implementing role playing games and utilities on the desktop and web. -## Requirements - -Xcode 26 or Swift 6 are required. - ## Organization The current organizational groupings include: