Skip to content

Commit

Permalink
Merge pull request #5 from AryanGodara/e2e-tests
Browse files Browse the repository at this point in the history
Write Integration tests
  • Loading branch information
apoorvsadana authored May 24, 2024
2 parents 3fe3733 + c2cd2df commit b8a9748
Show file tree
Hide file tree
Showing 23 changed files with 1,082 additions and 49 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Task - Rust Tests & Coverage

on:
workflow_dispatch:
workflow_call:

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

steps:
- uses: actions/checkout@v3

# selecting a toolchain either by action or manual `rustup` calls should happen
# 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: Clean workspace
run: |
cargo llvm-cov clean --workspace
- name: Run llvm-cov
run: |
cargo llvm-cov nextest --release --lcov --output-path lcov.info
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
with:
files: lcov.info
fail_ci_if_error: false

- uses: colpal/actions-clean@v1
if: ${{ always() }} # To ensure this step runs even when earlier steps fail
4 changes: 4 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ jobs:
linters_cargo:
name: Run Cargo linters
uses: ./.github/workflows/linters-cargo.yml

coverage:
name: Run coverage
uses: ./.github/workflows/coverage.yml
needs: rust_build
Loading

0 comments on commit b8a9748

Please sign in to comment.