GH-7: Optionally specify import data encoding. #5
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: Tests | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
env: | |
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
PACKAGE_NAME: csv-dialect-swift | |
jobs: | |
build: | |
runs-on: macos-latest | |
environment: main | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install deps | |
run: sudo gem install coveralls-lcov | |
- name: Run tests | |
run: | | |
swift test --enable-code-coverage | |
xcrun llvm-cov export -format=lcov -ignore-filename-regex="Tests" -instr-profile .build/debug/codecov/default.profdata .build/debug/${PACKAGE_NAME}PackageTests.xctest/Contents/MacOS/${PACKAGE_NAME}PackageTests > coverage.info | |
- name: Upload codecov | |
run: coveralls-lcov --repo-token $COVERALLS_TOKEN coverage.info |