Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "./${{ matrix.sdk }}.xcresult"
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
xcode: true
xcode_archive_path: "./${{ matrix.sdk }}.xcresult"
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ All notable changes to this project will be documented in this file.
## [Unreleased]

## Added

- Integrate `CodeCov`
- Added in Pull Request [#4](https://github.com/space-code/atomic/pull/4).

- Integrate `Danger`
- Added in Pull Request [#2](https://github.com/space-code/atomic/pull/2).
- Added in Pull Request [#3](https://github.com/space-code/atomic/pull/3).

- Change the locking mechanism from `DispatchSemaphore` to `unfair_lock_os` and add support for `@dynamicMemberLookup`
- Added in Pull Request [#1](https://github.com/space-code/atomic/pull/1).
- Added in Pull Request [#2](https://github.com/space-code/atomic/pull/2).

#### 1.x Releases
- `0.0.x` Releases - [0.0.1](#100)
Expand Down
48 changes: 48 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
codecov:
# Require CI to pass to show coverage, default yes
require_ci_to_pass: yes
notify:
# Codecov should wait for all CI statuses to complete, default yes
wait_for_ci: yes

coverage:
# Coverage precision range 0-5, default 2
precision: 2

# Direction to round the coverage value - up, down, nearest, default down
round: nearest

# Value range for red...green, default 70...100
range: "70...90"

status:
# Overall project coverage, compare against pull request base
project:
default:
# The required coverage value
target: 50%

# The leniency in hitting the target. Allow coverage to drop by X%
threshold: 5%

# Only measure lines adjusted in the pull request or single commit, if the commit in not in the pr
patch:
default:
# The required coverage value
target: 85%

# Allow coverage to drop by X%
threshold: 50%
changes: no

comment:
# Pull request Codecov comment format.
# diff: coverage diff of the pull request
# files: a list of files impacted by the pull request (coverage changes, file is new or removed)
layout: "diff, files"

# Update Codecov comment, if exists. Otherwise post new
behavior: default

# If true, only post the Codecov comment if coverage changes
require_changes: false