Enhancement/ci build speed (#417)

This commit is contained in:
Flori 2023-08-26 14:47:51 +02:00 committed by GitHub
commit fcdbfeda91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 11 deletions

View File

@ -32,7 +32,10 @@ jobs:
npm run start &
working-directory: ./server
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
- name: Build, Test and Publish Coverage
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --all-features --verbose --skip-clean --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }} --timeout 120
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm cargo-tarpaulin --force
cargo tarpaulin --all-features --avoid-cfg-tarpaulin --tests --verbose --skip-clean --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }} --timeout 120

18
Cargo.lock generated
View File

@ -431,7 +431,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2d328fc287c61314c4a61af7cfdcbd7e678e39778488c7cb13ec133ce0f4059"
dependencies = [
"fsio",
"indexmap 1.9.3",
"indexmap 1.8.2",
]
[[package]]
@ -648,7 +648,7 @@ dependencies = [
"futures-sink",
"futures-util",
"http",
"indexmap 1.9.3",
"indexmap 1.8.2",
"slab",
"tokio",
"tokio-util",
@ -657,9 +657,9 @@ dependencies = [
[[package]]
name = "hashbrown"
version = "0.12.3"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
[[package]]
name = "hashbrown"
@ -849,12 +849,12 @@ dependencies = [
[[package]]
name = "indexmap"
version = "1.9.3"
version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a"
dependencies = [
"autocfg",
"hashbrown 0.12.3",
"hashbrown 0.11.2",
"serde",
]
@ -1730,7 +1730,7 @@ dependencies = [
"base64 0.21.2",
"chrono",
"hex",
"indexmap 1.9.3",
"indexmap 1.8.2",
"serde",
"serde_json",
"serde_with_macros",
@ -1888,7 +1888,7 @@ dependencies = [
"generic-array",
"hashlink",
"hex",
"indexmap 1.9.3",
"indexmap 1.8.2",
"ipnetwork",
"itoa",
"libc",