add test action
This commit is contained in:
parent
21a7d0bb03
commit
7c8796baba
26
.gitea/workflows/test.yaml
Normal file
26
.gitea/workflows/test.yaml
Normal 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()
|
||||||
Loading…
x
Reference in New Issue
Block a user