Skip to content

Commit 4d65e46

Browse files
committed
Codecov integration: generate, print and upload
1 parent 5cedd3f commit 4d65e46

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/ci-linux.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,21 @@ jobs:
1818
with:
1919
access_token: ${{ github.token }}
2020

21-
# - name: Find llvm-cov
22-
# run: find / -iname llvm-cov
23-
24-
# - name: Intall llvm-cov
25-
# run: sudo apt-get install llvm-10
26-
2721
- uses: actions/checkout@v2
2822
- name: Build
2923
run: swift build -v
3024
- name: Run tests
3125
run: swift test --enable-code-coverage -v
26+
3227
- name: Generate Codecov
3328
run: |
3429
/usr/lib/llvm-9/bin/llvm-cov export \
3530
-format="lcov" .build/x86_64-unknown-linux-gnu/debug/AsyncTaskSwitcherPackageTests.xctest \
36-
-instr-profile=.build/x86_64-unknown-linux-gnu/debug/codecov/default.profdata > info.lcov
31+
-instr-profile=.build/x86_64-unknown-linux-gnu/debug/codecov/default.profdata \
32+
> info.lcov
3733
- name: Print Codecov
3834
run: cat info.lcov
39-
# - name: Upload to codecov.io
40-
# run: bash <(curl -s https://codecov.io/bash) -f info.lcov
41-
# env:
42-
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
35+
- name: Upload to codecov.io
36+
run: bash <(curl -s https://codecov.io/bash) -f info.lcov
37+
env:
38+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)