ci: update Go workflow from main

pull/6378/head v0.12.2
ᴜɴᴋɴᴡᴏɴ 2020-09-26 16:53:26 +08:00
parent 1a051ae5f8
commit 253b2bef4c
No known key found for this signature in database
GPG Key ID: B43718D76E30A238
1 changed files with 8 additions and 3 deletions

View File

@ -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-