From 70012fd2ece17298b2dfe54c5b908558b9e7be59 Mon Sep 17 00:00:00 2001 From: hau Date: Tue, 1 Dec 2020 17:55:52 +0700 Subject: [PATCH] chore: build using gotip for github action --- .github/workflows/go.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 00cb92d..4bc3822 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -1,6 +1,6 @@ name: Go -on: push +on: [push, pull_request] jobs: test: @@ -13,6 +13,18 @@ jobs: go-version: 1.15 - run: go version - run: go test -race ./... + build-gotip: + name: Build using gotip + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - run: go get golang.org/dl/gotip + - run: gotip download + - run: gotip version + - run: gotip build main.go lint: name: Lint runs-on: ubuntu-latest @@ -20,4 +32,4 @@ jobs: - uses: actions/checkout@v2 - uses: golangci/golangci-lint-action@v2 with: - version: v1.32 + version: v1.33