Browse Source

new workflow

t1m0t 3 years ago
parent
commit
ed0e03a036
1 changed files with 17 additions and 0 deletions
  1. 17 0
      .github/workflows/main.yml

+ 17 - 0
.github/workflows/main.yml

@@ -76,3 +76,20 @@ jobs:
         with:
           command: clippy
           args: -- -D warnings
+
+  coverage:
+    name: coverage
+    runs-on: ubuntu-latest
+    container:
+      image: xd009642/tarpaulin:develop-nightly
+      options: --security-opt seccomp=unconfined
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v2
+      - name: Generate code coverage
+        run: |
+          apt-get update &&\
+          apt install libwebkit2gtk-4.0-dev libappindicator3-dev libgtk-3-dev &&\
+          cargo +nightly tarpaulin --verbose --tests --all-features --workspace --timeout 120 --out Xml
+      - name: Upload to codecov.io
+        uses: codecov/codecov-action@v2