Skip to content

Commit

Permalink
update: Introduced Rust Cache (#93)
Browse files Browse the repository at this point in the history
Co-authored-by: Apoorv Sadana <[email protected]>
  • Loading branch information
heemankv and apoorvsadana authored Aug 22, 2024
1 parent ae8fc95 commit fa59cdf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: Task - Rust Tests & Coverage
name: Rust Test & Coverage

on:
workflow_dispatch:
workflow_call:

jobs:
coverage:
# sadly, for now we have to "rebuild" for the coverage
runs-on: ubuntu-latest

services:
Expand All @@ -32,22 +30,31 @@ jobs:
# before the plugin, as the cache uses the current rustc version as its cache key
- run: rustup show

- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@v2

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

- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Clean workspace
run: |
cargo llvm-cov clean --workspace
cargo clean --doc
- name: Run llvm-cov
run: |
cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1
- name: Run tests llvm-cov
run: cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
files: lcov.info
debug: true

- uses: colpal/actions-clean@v1
if: ${{ always() }} # To ensure this step runs even when earlier steps fail
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Added

- Added Rust Cache for Coverage Test CI.
- support for fetching PIE file from storage client in proving job.
- added coveralls support
- moved mongodb serde behind feature flag
Expand Down

0 comments on commit fa59cdf

Please sign in to comment.