From 253b2bef4c26925d2fd0555aa8911cd21fb68b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=9C=C9=B4=E1=B4=8B=C9=B4=E1=B4=A1=E1=B4=8F=C9=B4?= Date: Sat, 26 Sep 2020 16:53:26 +0800 Subject: [PATCH] ci: update Go workflow from main --- .github/workflows/go.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a0006d6f8..808307e77 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,8 +1,14 @@ name: Go on: push: - branches: [master] + branches: + - main + - 'release/**' + paths: + - '**.go' pull_request: + paths: + - '**.go' env: GOPROXY: "https://proxy.golang.org" @@ -21,7 +27,7 @@ jobs: name: Test strategy: matrix: - go-version: [1.14.x] + go-version: [1.14.x, 1.15.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -45,4 +51,3 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- -