瀏覽代碼

ci: update Go workflow from main

ᴜɴᴋɴᴡᴏɴ 4 年之前
父節點
當前提交
253b2bef4c
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      .github/workflows/go.yml

+ 8 - 3
.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-
-