From ed1cfa74f132a69693fac1253f5f6ca8a5b57bed Mon Sep 17 00:00:00 2001 From: Wyatt Verchere Date: Mon, 13 Nov 2023 17:33:03 -0800 Subject: [PATCH] repush --- .github/workflows/coverage-tarp.yml | 2 +- .github/workflows/coverage2.yml | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage-tarp.yml b/.github/workflows/coverage-tarp.yml index 648fa1c9..f56ed99e 100644 --- a/.github/workflows/coverage-tarp.yml +++ b/.github/workflows/coverage-tarp.yml @@ -19,7 +19,7 @@ jobs: run: docker-compose up -d - name: Generate code coverage run: | - cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml + cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml - name: Upload to codecov.io uses: codecov/codecov-action@v2 diff --git a/.github/workflows/coverage2.yml b/.github/workflows/coverage2.yml index 68af899e..a9646d0e 100644 --- a/.github/workflows/coverage2.yml +++ b/.github/workflows/coverage2.yml @@ -16,10 +16,24 @@ jobs: - uses: actions/checkout@v4 - name: Install Rust run: rustup update stable + # Cache dependencies and build artifacts + - name: Cache build artifacts and dependencies + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - uses: actions-rs/cargo@v1 + with: + command: build + env: + SQLX_OFFLINE: true - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage - run: cargo llvm-cov --lcov --output-path lcov.info + run: cargo llvm-cov --no-clean --all-features --frozen --lcov --output-path lcov.info env: SQLX_OFFLINE: true # needed to keep it from trying to connect to a database - name: Upload coverage to Codecov