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()