30 lines
607 B
YAML
30 lines
607 B
YAML
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'
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '1.21.x'
|
|
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()
|