Added github action to test code on push
This commit is contained in:
parent
2520bada38
commit
43fd04c5eb
1 changed files with 15 additions and 0 deletions
15
.github/workflows/test.yml
vendored
Normal file
15
.github/workflows/test.yml
vendored
Normal 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/
|
Loading…
Add table
Reference in a new issue