瀏覽代碼

Capture code coverage and upload

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Alan Jowett 2 年之前
父節點
當前提交
9baccc1ef9
共有 1 個文件被更改,包括 15 次插入0 次删除
  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