ActivityAlertView Initializer #33
Workflow file for this run
This file contains hidden or 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
name: Swift | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
PACKAGE_NAME: CodeQuickKit | |
jobs: | |
macos-build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
- name: Build (macOS) | |
run: swift build -v | |
- name: Run tests | |
run: swift test --enable-code-coverage -v 2>&1 | xcpretty --report junit | |
- name: Code Coverage | |
run: xcrun llvm-cov export -format="lcov" .build/debug/${{ env.PACKAGE_NAME }}PackageTests.xctest/Contents/MacOS/${{ env.PACKAGE_NAME }}PackageTests -instr-profile .build/debug/codecov/default.profdata > build/reports/coverage.lcov | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results | |
path: | | |
build/reports/junit.xml | |
build/reports/coverage.lcov | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/macos@v2 | |
with: | |
files: build/reports/junit.xml | |
- name: Publish Code Coverage | |
uses: lifeart/jest-lcov-reporter@v0.4.0 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
lcov-file: build/reports/coverage.lcov | |
update-comment: true | |
ubuntu-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
- name: Build (Ubuntu) | |
run: swift build -v | |
- name: Run tests | |
run: swift test -v | |