Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codecov.io integration #4

Merged
merged 23 commits into from
May 24, 2022
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6403e62
Add codecov.io integration
scouten-adobe May 24, 2022
d385df9
Merge branch 'main' into code-coverage
scouten-adobe May 24, 2022
6d04be0
Hmmm … do we have a timeout problem?
scouten-adobe May 24, 2022
f6f8ece
Retry with https://github.com/taiki-e/cargo-llvm-cov
scouten-adobe May 24, 2022
0055da1
Merge branch 'main' into code-coverage
scouten-adobe May 24, 2022
662f6a4
Give the CI job a name
scouten-adobe May 24, 2022
4a579f6
Merge branch 'main' into code-coverage
scouten-adobe May 24, 2022
226446f
Merge coverage runs with mainstream test runs
scouten-adobe May 24, 2022
e25fdd7
CI job didn't start
scouten-adobe May 24, 2022
906ee8a
Another guess at YAML syntax
scouten-adobe May 24, 2022
b314402
Run coverage only on current/stable Rust
scouten-adobe May 24, 2022
ea1c17a
Install grcov
scouten-adobe May 24, 2022
2d51ce0
Merge branch 'main' into code-coverage
scouten-adobe May 24, 2022
77c2a5b
OK, back to cargo-llvm-cov
scouten-adobe May 24, 2022
98099a7
Fail CI if unable to upload to codecov
scouten-adobe May 24, 2022
12fffb1
Remove dep on grcov (no longer needed)
scouten-adobe May 24, 2022
0cbf1e4
Rename stable unit tests back to former name to match branch rules
scouten-adobe May 24, 2022
e422bd0
Once again, guessing at what "Startup failure" means
scouten-adobe May 24, 2022
f0a4b79
Or maybe it's this?
scouten-adobe May 24, 2022
d7d703e
OK, that's subtle
scouten-adobe May 24, 2022
fece07c
Remove unneeded quotes
scouten-adobe May 24, 2022
6a0f83b
Add note explaining lack of code coverage in MSRV test runs
scouten-adobe May 24, 2022
3125bec
Back to previous names for CI jobs
scouten-adobe May 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
rust_version: [1.58.0, stable]
rust_version: [stable]

steps:
- name: Checkout repository
Expand All @@ -24,18 +24,56 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
components: llvm-tools-preview
override: true

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- name: Upload code coverage results
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true

tests-msrv:
name: Unit tests
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
rust_version: [1.58.0]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
override: true

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1

# Note that we do not run code coverage because
# it was not stabilized as of 1.58.0.

- name: Run self tests
uses: actions-rs/cargo@v1
with:
command: test
# args: --all-targets --all-features --workspace (waiting on bug fix)
args: --all-features --workspace

wasm_tests:
name: Wasm tests
runs-on: ubuntu-latest
Expand Down