-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,8 @@ jobs: | |
- uses: Swatinem/[email protected] | ||
- name: Rust setup | ||
# FIXME: Once rustup adds a command to install a toolchain from rust-toolchain.toml, we can remove this. | ||
run: rustup toolchain add 1.73.0 --profile minimal | ||
run: rustup toolchain add 1.73.0 --profile minimal --component llvm-tools-preview | ||
- uses: taiki-e/install-action@cargo-llvm-cov | ||
|
||
- name: Lint | ||
run: make lint | ||
|
@@ -58,8 +59,16 @@ jobs: | |
# (to avoid building both a release and a debug profile in CI). | ||
run: PROFILE=dev make build | ||
|
||
- name: Run unit tests | ||
run: make test-unit | ||
- name: Run unit tests (and generate coverage) | ||
run: make ci-cov | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: codecov.json | ||
fail_ci_if_error: true | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build-docs: | ||
name: Build Documentation | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Configures a simple CI comment (instead of the more verbose default) | ||
comment: | ||
layout: "header, files, footer" | ||
hide_project_coverage: false | ||
|
||
# Configures coverage checks -- both patch and project-wide checks | ||
# can drop by 5% before failing the CI build. | ||
# | ||
# Note: duplication required since the `default_rules` do not support | ||
# the `target`, `threshold`, or `if_ci_failed` fields. | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 5% | ||
if_ci_failed: success | ||
patch: | ||
default: | ||
target: auto | ||
threshold: 5% | ||
if_ci_failed: success |