add test action

This commit is contained in:
maximo tejeda 2024-02-08 14:46:58 -04:00
parent 21a7d0bb03
commit 7c8796baba

View File

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