From 05957c1bb24118106ad6cf6c2260b2a14e845ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8D=E1=B4=8F=E1=B4=8F=C9=B4D4=CA=80=E1=B4=8B?= Date: Sun, 14 Aug 2022 22:32:36 +0800 Subject: [PATCH] chore: update golang version to 1.19 --- .github/workflows/{ci.yml => build.yml} | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) rename .github/workflows/{ci.yml => build.yml} (76%) diff --git a/.github/workflows/ci.yml b/.github/workflows/build.yml similarity index 76% rename from .github/workflows/ci.yml rename to .github/workflows/build.yml index 768bb30..13bbffd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,16 @@ -name: CI -on: [push] +name: build +on: + push: + branches: + - master + pull_request: jobs: build: name: Build runs-on: ubuntu-latest strategy: matrix: - goVer: [1.18] + goVer: [1.19] steps: - name: Set up Go ${{ matrix.goVer }} @@ -22,8 +26,9 @@ jobs: run: | go get -v -t -d ./... go get gopkg.in/check.v1 + + - name: Format + run: diff -u <(echo -n) <(gofmt -d .) + - name: Build run: go build -v ./... - - - name: Format - run: diff -u <(echo -n) <(gofmt -d .)