-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: generate codecov.yml before tests (#3280)
- Loading branch information
Showing
4 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,17 +40,17 @@ jobs: | |
run: | | ||
make build BUILD_RE2_WASM=1 | ||
- name: Generate codecov configuration | ||
run: | | ||
.github/generate-codecov-yml.sh >> .github/codecov.yml | ||
- name: Run tests | ||
run: | | ||
go install github.com/kyoh86/[email protected] | ||
go test -tags expr_debug -coverprofile coverage.out -covermode=atomic ./... > out.txt | ||
if(!$?) { cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter; Exit 1 } | ||
cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter | ||
- name: Ignore-list of generated files for codecov | ||
run: | | ||
.github/codecov-ignore-generated.sh >> .github/codecov.yml | ||
- name: Upload unit coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
|
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