diff options
author | Julien Dessaux | 2022-01-25 21:52:26 +0100 |
---|---|---|
committer | Julien Dessaux | 2022-01-25 22:06:28 +0100 |
commit | 43fd04c5ebc36df097672d6fd1822772154f59ee (patch) | |
tree | c7bcc0f043a12881825c32f26c3e8d8c2173ef3e /.github/workflows | |
parent | Go 1.17 (diff) | |
download | bareos-zabbix-check-43fd04c5ebc36df097672d6fd1822772154f59ee.tar.gz bareos-zabbix-check-43fd04c5ebc36df097672d6fd1822772154f59ee.tar.bz2 bareos-zabbix-check-43fd04c5ebc36df097672d6fd1822772154f59ee.zip |
Added github action to test code on push
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/test.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..21e5502 --- /dev/null +++ b/.github/workflows/test.yml @@ -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/ |