1
0
Fork 0

Added github action to test code on push

This commit is contained in:
Julien Dessaux 2022-01-25 21:52:26 +01:00
parent 2520bada38
commit 43fd04c5eb
Signed by: adyxax
GPG key ID: F92E51B86E07177E

15
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.17.6'
- uses: actions/checkout@v2
- run: |
go get -v -t -d ./...
- run: go test ./...
- run: go build -ldflags="-s -w" ./cmd/bareos-zabbix-check/