Skip to content

Commit aa5055b

Browse files
authored
Configure Codecov action to disable search and set working directory (#58)
1 parent aa32e3b commit aa5055b

File tree

2 files changed

+7
-99
lines changed

2 files changed

+7
-99
lines changed

.github/workflows/coverage.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
push:
88
branches: [main]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
coverage:
1215
runs-on: ubuntu-latest
@@ -101,26 +104,16 @@ jobs:
101104
--exclude wat-fmt \
102105
--exclude inf-wast \
103106
--exclude inf-wasmparser \
104-
--lcov \
105-
--output-path lcov.info
107+
--no-report
106108
107-
- name: Generate coverage summary
109+
- name: Generate lcov report from collected coverage
108110
run: |
109-
cargo llvm-cov \
110-
--workspace \
111-
--exclude inference-tests \
112-
--exclude inference-playground-server \
113-
--exclude wasm-fmt \
114-
--exclude wat-fmt \
115-
--exclude inf-wast \
116-
--exclude inf-wasmparser \
117-
--summary-only
111+
cargo llvm-cov report --lcov --output-path lcov.info
118112
119113
- name: Upload coverage to Codecov
120-
uses: codecov/codecov-action@v4
114+
uses: codecov/codecov-action@v5
121115
with:
122116
files: ./lcov.info
123-
flags: core
124117
fail_ci_if_error: true
125118
verbose: true
126119
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)