-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
3 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 |
---|---|---|
|
@@ -14,6 +14,27 @@ jobs: | |
with: | ||
workflow_id: ${{ github.event.workflow.id }} | ||
|
||
generate_code_coverage: | ||
needs: cancel_previous | ||
runs-on: macos-14 | ||
steps: | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "15.2" | ||
- uses: actions/checkout@v2 | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} | ||
- name: Build & Run tests | ||
run: swift test --enable-code-coverage | ||
- name: Convert coverage report | ||
run: xcrun llvm-cov export -format="lcov" .build/debug/SegmentPackageTests.xctest/Contents/MacOS/SegmentPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: segmentio/analytics-swift | ||
|
||
build_and_test_spm_mac: | ||
needs: cancel_previous | ||
runs-on: macos-14 | ||
|
@@ -25,9 +46,7 @@ jobs: | |
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} | ||
- name: Build | ||
run: swift build | ||
- name: Run tests | ||
- name: Build & Run tests | ||
run: swift test | ||
|
||
build_and_test_spm_linux: | ||
|
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,10 @@ | ||
ignore: | ||
- "Tests" # ignore all tests | ||
|
||
comment: # this is a top-level key | ||
layout: "diff, flags, files" | ||
behavior: default | ||
require_changes: false # learn more in the Requiring Changes section below | ||
require_base: false # [true :: must have a base report to post] | ||
require_head: true # [true :: must have a head report to post] | ||
hide_project_coverage: false # [true :: only show coverage on the git diff] |