diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000000..dd7c551c59 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,9 @@ +# Settings via https://docs.codecov.com/docs/common-recipe-list +coverage: + status: + project: + default: + informational: true +comment: + layout: " diff, flags, files" + behavior: default \ No newline at end of file diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 51c6ceed10..3706020a60 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -244,12 +244,18 @@ jobs: - name: Check that the collector compiles run: | cargo check --locked --manifest-path collector/Cargo.toml - # - name: Check that the Windows node runner service compiles (gnu toolchain, disable embedded resources) - # run: | - # cargo check --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/Cargo.toml --workspace --no-default-features - # - name: Check that the Windows installer custom action library compiles (gnu toolchain) - # run: | - # cargo check --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/installer/custom-actions/Cargo.toml --workspace + - name: Check that the Windows node runner service compiles (gnu toolchain, disable embedded resources) + # Instrument coverage flag doesn't seem to be supported in windows target + env: + RUSTFLAGS: "" + run: | + cargo check --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/Cargo.toml --workspace --no-default-features + - name: Check that the Windows installer custom action library compiles (gnu toolchain) + # Instrument coverage flag doesn't seem to be supported in windows target + env: + RUSTFLAGS: "" + run: | + cargo check --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/installer/custom-actions/Cargo.toml --workspace - name: Run clippy (without extra features) run: | cargo clippy --locked --manifest-path concordium-node/Cargo.toml --all -- -D warnings @@ -262,20 +268,24 @@ jobs: - name: Run clippy on collector run: | cargo clippy --locked --manifest-path collector/Cargo.toml -- -D warnings - # - name: Run clippy on Windows node runner service - # run: | - # cargo clippy --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/Cargo.toml --all --no-default-features -- -D warnings - # - name: Run clippy on Windows installer custom action library - # run: | - # cargo clippy --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/installer/custom-actions/Cargo.toml --all -- -D warnings + - name: Run clippy on Windows node runner service + # Instrument coverage flag doesn't seem to be supported in windows? + env: + RUSTFLAGS: "" + run: | + cargo clippy --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/Cargo.toml --all --no-default-features -- -D warnings + - name: Run clippy on Windows installer custom action library + # Instrument coverage flag doesn't seem to be supported in windows? + env: + RUSTFLAGS: "" + run: | + cargo clippy --locked --target x86_64-pc-windows-gnu --manifest-path service/windows/installer/custom-actions/Cargo.toml --all -- -D warnings - name: Test Rust crates (without extra features) run: | cargo test --manifest-path concordium-node/Cargo.toml --all - name: Test Rust crates (with feature 'network_dump') run: | cargo test --manifest-path concordium-node/Cargo.toml --all --features=network_dump - - # WIP: coverage reporting: - name: Check for .profraw files run: | find . -type f -name "*.profraw"