Replace CSV with JSON as file format for ISO Currency definitions #114
Workflow file for this run
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: Code Coverage | |
on: pull_request | |
jobs: | |
codecov: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Check Swift version | |
run: swift --version | |
- name: Gather code coverage | |
run: swift test --enable-code-coverage | |
- name: Generate report | |
run: | | |
xcrun llvm-cov show \ | |
.build/x86_64-apple-macosx/debug/currencyPackageTests.xctest/Contents/MacOS/currencyPackageTests \ | |
-instr-profile=".build/x86_64-apple-macosx/debug/codecov/default.profdata" \ | |
-ignore-filename-regex="(.build|Tests|ISOCurrencies)" > coverage.txt | |
- name: Upload report | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: | | |
bash <(curl -s https://codecov.io/bash) \ | |
-J "Currency" \ | |
-D ".build/debug" |