From 5705caf46e23a0757cc4e627e777431355ce49a1 Mon Sep 17 00:00:00 2001 From: Gopinath Langote Date: Tue, 27 Aug 2019 22:21:15 +0200 Subject: [PATCH] Introduce github action workflow --- .github/workflows/go.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..637f3822 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,27 @@ +name: Go +on: [push] +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.12 + uses: actions/setup-go@v1 + with: + go-version: 1.12 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Build + env: + GO111MODULE: on + run: go build -v . + + - name: Test + env: + GO111MODULE: on + run: go test -v -cover github.com/gopinath-langote/1build/testing -run .