Skip to content

Commit

Permalink
Fix codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichop committed Oct 19, 2020
1 parent c293ec9 commit a657854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ jobs:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app
steps:
- uses: actions/checkout@v2
- name: test
- name: export-codecov
run: |
swift --version
swift test --enable-test-discovery
- name: export coverage
if: success()
run: make export-codecov
make export-codecov
- name: codecov
uses: codecov/codecov-action@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions scripts/llvm-cov-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
echo "Deleting coverage.lcov..."
rm -f coverage.lcov

swift test --enable-test-discovery --enable-code-coverage

BIN_PATH="$(swift build --show-bin-path)"
XCTEST_PATH="$(find ${BIN_PATH} -name '*.xctest')"

Expand Down

0 comments on commit a657854

Please sign in to comment.