Ver Fonte

Capture code coverage and upload

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Alan Jowett há 2 anos atrás
pai
commit
9baccc1ef9
1 ficheiros alterados com 15 adições e 0 exclusões
  1. 15 0
      .github/workflows/test.yaml

+ 15 - 0
.github/workflows/test.yaml

@@ -67,3 +67,18 @@ jobs:
           --plugin_path /rbpf/target/release/examples/rbpf_plugin \
           --exclude_regex "${{ env.KNOWN_FAILURES }}"  \
           --plugin_options "--jit" || true
+
+      - name: Install development tools
+        uses: taiki-e/install-action@v1.14.2
+        with:
+          tool: cargo-llvm-cov
+
+      - name: Generate coverage report
+        run: |
+          cargo llvm-cov --lcov --all --all-features --all-targets > lcov.info
+
+      - name: Upload coverage to coveralls
+        uses: coverallsapp/github-action@master
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+          path-to-lcov: lcov.info