From 83df4e28d5ab14aa9ad44b4a816b73adecd2b466 Mon Sep 17 00:00:00 2001 From: Rick Date: Thu, 23 Mar 2023 17:42:52 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20=E8=B0=83=E6=95=B4CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7a6b1e4..40fcb11 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,26 +1,24 @@ name: Go on: [push] jobs: - build: name: Build runs-on: ubuntu-latest steps: + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.20 + id: go - - 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@v1 + - name: Check out code into the Go module directory + uses: actions/checkout@v1 - - name: Get dependencies - run: go get -v -t -d ./... + - name: Get dependencies + run: go get -v -t -d ./... - - name: Test - run: go test -v . + - name: Test + run: go test -v . - - name: Build - run: go build -v . + - name: Build + run: go build -v .