From 9e6c7f6a9512cd90404da5e3e55bfb6fe91d73ee Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Fri, 1 Nov 2024 18:27:02 -0400 Subject: Add workflow to run test and generate coverage --- .github/worflows/pull_request.yaml | 27 +++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 .github/worflows/pull_request.yaml 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 -- cgit