Skip to content

Commit

Permalink
feat: Enable code coverage and integrate with Coveralls (#3)
Browse files Browse the repository at this point in the history
* feat: Enable code coverage and integrate with Coveralls

* llvm-cov export lcov

* Update testing.yml

* Update README.md
  • Loading branch information
josetorronteras authored Feb 7, 2024
1 parent a61a3c3 commit 86cd1a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ jobs:
- name: Build
run: swift build
- name: Test
run: swift test
run: |
swift test --enable-code-coverage
xcrun llvm-cov export -format="lcov" .build/debug/EmailValidationPackageTests.xctest/Contents/MacOS/EmailValidationPackageTests -instr-profile .build/debug/codecov/default.profdata -ignore-filename-regex=".build|Tests" > info.lcov
- name: Coveralls
uses: coverallsapp/github-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
*.lcov
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Email Validation Macro

[![CodeFactor](https://www.codefactor.io/repository/github/josetorronteras/emailvalidationmacro/badge)](https://www.codefactor.io/repository/github/josetorronteras/emailvalidationmacro)
[![testing](https://github.com/josetorronteras/EmailValidationMacro/actions/workflows/testing.yml/badge.svg)](https://github.com/josetorronteras/EmailValidationMacro/actions/workflows/testing.yml)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fjosetorronteras%2FEmailValidationMacro%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/josetorronteras/EmailValidationMacro)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fjosetorronteras%2FEmailValidationMacro%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/josetorronteras/EmailValidationMacro)
[![Coverage Status](https://coveralls.io/repos/github/josetorronteras/EmailValidationMacro/badge.svg?branch=main)](https://coveralls.io/github/josetorronteras/EmailValidationMacro?branch=main)

Email Validation Macro is a Swift macro framework for validating email addresses.

Expand Down

0 comments on commit 86cd1a3

Please sign in to comment.