Skip to content

Commit b3079c8

Browse files
authored
Add Linux test job to CI workflow (#28)
# *Add Linux test job to CI workflow* ## ♻️ Current situation & Problem - Add Linux test job to CI workflow ## ⚙️ Release Notes - Add Linux test job to CI workflow ## 📚 Documentation -/- ## ✅ Testing -/- ### Code of Conduct & Contributing Guidelines - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added Linux Swift package testing to the continuous integration pipeline to ensure cross-platform compatibility. * Enhanced coverage reporting to include results from Linux test runs, improving visibility into code quality metrics. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 1a8789d commit b3079c8

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/build-and-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,22 @@ jobs:
7777
destination: ${{ matrix.platform.destination }}
7878
resultBundle: ${{ format('TestApp-{0}-{1}.xcresult', matrix.platform.name, matrix.config) }}
7979
artifactname: ${{ format('TestApp-{0}-{1}.xcresult', matrix.platform.name, matrix.config) }}
80+
package_tests_linux:
81+
name: Build and Test Swift Package Linux (${{ matrix.config }})
82+
uses: StanfordBDHG/.github/.github/workflows/swift-test.yml@v2
83+
strategy:
84+
matrix:
85+
config: [Debug, Release]
86+
fail-fast: false
87+
with:
88+
build_configuration: ${{ matrix.config }}
89+
artifact_name: ${{ format('TemplatePackage-Linux-{0}.lcov', matrix.config) }}
8090
uploadcoveragereport:
8191
name: Upload Coverage Report
82-
needs: [package_tests, ui_tests]
92+
needs: [package_tests, ui_tests, package_tests_linux]
8393
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
8494
with:
8595
coveragereports: TemplatePackage-*.xcresult TestApp-*.xcresult
96+
coveragereports_lcov: TemplatePackage-Linux-*.lcov
8697
secrets:
8798
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)