aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2024-11-01 18:27:02 -0400
committerKevin Hoerr <kjhoerr@submelon.tech>2024-11-01 18:31:40 -0400
commit9e6c7f6a9512cd90404da5e3e55bfb6fe91d73ee (patch)
treef4f6f4dd4b6db0128d3a1583297fca2283425eef
parentdd96c79d87ffe5b865c10ddef555157425d2858f (diff)
downloadaugust-offensive-9e6c7f6a9512cd90404da5e3e55bfb6fe91d73ee.tar.gz
august-offensive-9e6c7f6a9512cd90404da5e3e55bfb6fe91d73ee.tar.bz2
august-offensive-9e6c7f6a9512cd90404da5e3e55bfb6fe91d73ee.zip
Add workflow to run test and generate coverage
-rw-r--r--.github/worflows/pull_request.yaml27
-rw-r--r--.gitignore2
2 files changed, 29 insertions, 0 deletions
diff --git a/.github/worflows/pull_request.yaml b/.github/worflows/pull_request.yaml
new file mode 100644
index 0000000..c643859
--- /dev/null
+++ b/.github/worflows/pull_request.yaml
@@ -0,0 +1,27 @@
+name: August Offensive PR
+
+on:
+ pull_request:
+ branches: [ "trunk", "master" ]
+
+jobs:
+
+ rust:
+ runs-on: ubuntu-latest
+
+ container:
+ image: xd009642/tarpaulin:develop-nightly
+ options: --security-opt seccomp=unconfined
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Generate code coverage
+ run: |
+ cargo tarpaulin --verbose --workspace --exclude-files src/schema.rs --out xml
+
+ - name: Upload code coverage report to artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ path: cobertura.xml
+
diff --git a/.gitignore b/.gitignore
index 01bf63b..c87585d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@ target/
*.out
*~
**/*.rs.bk
+
+cobertura.xml