From 7c8796baba07c3f9b626b73e0e02be3c00b4b053 Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Thu, 8 Feb 2024 14:46:58 -0400 Subject: [PATCH] add test action --- .gitea/workflows/test.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..f648712 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,26 @@ +name: 'Go test code' + +on: + push: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: 'Checkout gitea action' + uses: actions/checkout@v3 + + - name: 'Run Tests' + run: | + export GOPATH="$HOME/go/" + export GOBIN=$PATH:GOPATH/bin + go test -v ./... > report.xml + + - name: Test Sumary + uses: test-summary/action@v1 + with: + paths: | + ${{ env.MICROSERVICE_LOCATION }}/report.xml + - if: always()