From 1423c84ea000ad0e81f4cc96d6a885aad70273fb Mon Sep 17 00:00:00 2001 From: Grzegorz Blach Date: Sun, 19 Dec 2021 22:56:28 +0100 Subject: [PATCH] Create gotest.yml --- .github/workflows/gotest.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/gotest.yml diff --git a/.github/workflows/gotest.yml b/.github/workflows/gotest.yml new file mode 100644 index 0000000..074e448 --- /dev/null +++ b/.github/workflows/gotest.yml @@ -0,0 +1,26 @@ +name: Go test + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...