This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
add one or more spaces before duration (#20) #40
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
name: M3UKit | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: macos-latest | |
steps: | |
- name: Get Sources | |
uses: actions/checkout@v2 | |
- name: Build Package | |
run: swift build -v | |
- name: Run tests | |
run: swift test --enable-code-coverage -v | |
- name: Gather code coverage | |
run: xcrun llvm-cov export -format="lcov" .build/debug/M3UKitPackageTests.xctest/Contents/MacOS/M3UKitPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: fail | |
files: ./coverage_report.lcov | |
verbose: true |