From 453a4542ca77eb00eef25c9147cb5fc631a11f47 Mon Sep 17 00:00:00 2001 From: 0xE8551CCB Date: Wed, 1 Jul 2020 15:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..c2545cb --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,35 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + 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: golangci-lint + uses: golangci/golangci-lint-action@v1 + with: + version: v1.26 + only-new-issues: true + + - name: Test + run: go test -v -covermode=atomic -coverprofile=coverage.out -race +