-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 1.27 KB
/
test-coverage.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test Coverage
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore: ['**/Dockerfile', '**/public/**', '**/.*ignore', '**/*.toml']
push:
branches: [main, staging]
paths-ignore: ['**/Dockerfile', '**/public/**', '**/.*ignore', '**/*.toml']
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone submodules
run: git submodule update --init --recursive
- name: Set Git Identity
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Apply Patch Changes to the submodule
run: |
cd packages/probabilistic-encryption
git apply ../../submodules-changes.patch
- name: Install Rust toolchain 1.74
run: rustup toolchain install nightly-2023-12-21
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov
- name: Run tests with coverage
run: cargo llvm-cov --all-features --workspace --html --output-dir=target/llvm-cov/html
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: target/llvm-cov/html