From 6e48c2416ef24af603f5ef12e1df555b3ef10637 Mon Sep 17 00:00:00 2001 From: Lauro Correia Silveira Date: Wed, 25 Oct 2023 20:14:07 +0200 Subject: [PATCH] Add git actions test report --- .github/workflows/ci.yml | 16 +++++++++++++++- .github/workflows/label.yml | 22 ---------------------- 2 files changed, 15 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/label.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02f98f4..3dc1341 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,17 @@ name: CI Workflow run-name: ${{ github.actor }} has started workflow + on: push: branches: [ "main" ] pull_request: branches: [ "main" ] +permissions: + contents: read + actions: read + checks: write + jobs: build: runs-on: ubuntu-latest @@ -21,4 +27,12 @@ jobs: ## Build and execute every test - name: Build and test with Maven - run: mvn -B package --file pom.xml \ No newline at end of file + run: mvn -B package --file pom.xml + + - name: Test Report + uses: dorny/test-reporter@v1.7.0 + if: success() || failure() + with: + name: Test Report Summary + reporter: java-junit + path: target/surefire-reports/*.xml \ No newline at end of file diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml deleted file mode 100644 index f37df15..0000000 --- a/.github/workflows/label.yml +++ /dev/null @@ -1,22 +0,0 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler - -name: Labeler -on: [pull_request_target] - -jobs: - label: - - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.TOKEN_GITHUB }}"