-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] fix test.yaml workflow and codecov upload (#83)
- Loading branch information
1 parent
e36f129
commit c882ff8
Showing
9 changed files
with
162 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
codecov: | ||
branch: main | ||
require_ci_to_pass: yes | ||
notify: | ||
wait_for_ci: yes | ||
|
||
coverage: | ||
range: 80...100 | ||
precision: 3 | ||
round: down | ||
|
||
ignore: | ||
- "EmpowerPlantTests/*" | ||
|
||
comment: | ||
layout: "reach,diff,flags,files,footer" | ||
# Update, if comment exists. Otherwise post new. | ||
behavior: default | ||
# Comments will only post when coverage changes. Furthermore, if a comment | ||
# already exists, and a newer commit results in no coverage change for the | ||
# entire pull, the comment will be deleted. | ||
require_changes: true | ||
require_base: yes # must have a base report to post | ||
require_head: yes # must have a head report to post | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
name: test.yml | ||
|
||
on: | ||
push: | ||
branches: | ||
- integrate_codecov | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Bundler | ||
run: gem install bundler | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
- name: Install Slather | ||
run: gem install slather | ||
|
||
- name: Build and Test | ||
run: | | ||
swift build | ||
swift test | ||
- name: Generate Coverage Report | ||
run: | | ||
xcrun xccov view --report <derived-data-path>/Logs/Test/*.xccovreport > coverage.txt | ||
run: make test | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
.env | ||
build/ | ||
release-build.log | ||
EmpowerPlant_release.zip | ||
EmpowerPlant_release.zip | ||
slather/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
coverage_service: cobertura_xml | ||
xcodeproj: EmpowerPlant.xcodeproj | ||
scheme: EmpowerPlant | ||
source_directory: EmpowerPlant | ||
output_directory: slather | ||
build_directory: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters