2021-03-18 23:41:25 +01:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-03-21 16:13:51 +01:00
|
|
|
env:
|
|
|
|
GO111MODULE: auto
|
2021-03-18 23:41:25 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-09-23 09:34:16 +02:00
|
|
|
go-version: 1.17
|
2021-03-18 23:41:25 +01:00
|
|
|
|
|
|
|
- name: Build
|
2021-09-23 09:33:15 +02:00
|
|
|
run: go build -o apg -v github.com/wneessen/apg-go/cmd/apg
|
2021-03-18 23:41:25 +01:00
|
|
|
|
|
|
|
- name: Test
|
2021-09-23 09:33:15 +02:00
|
|
|
run: go test -v github.com/wneessen/apg-go/cmd/apg
|