From 736fddf345995ff331f44065b4864a638dcc0aa8 Mon Sep 17 00:00:00 2001 From: CareyWong <33325726+CareyWang@users.noreply.github.com> Date: Thu, 19 Mar 2020 22:34:26 +0800 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 0000000..ac10be9 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,30 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + go mod tidy + + - name: Build + run: go build -o myurls main.go