From 493c90684be46e502afe025b34303c6a1fa23490 Mon Sep 17 00:00:00 2001 From: 5bug <30523953+5bug@users.noreply.github.com> Date: Sun, 22 May 2022 17:49:09 +0800 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..b42927f --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... + + - name: Lint + uses: golangci/golangci-lint-action@v2