Explorar el Código

[action] use go version matrix for the test / build step

max furman hace 5 años
padre
commit
c71d56e4ae
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      .github/workflows/test.yml

+ 5 - 2
.github/workflows/test.yml

@@ -11,7 +11,10 @@ on:
 jobs:
 jobs:
   lintTestBuild:
   lintTestBuild:
     name: Lint, Test, Build
     name: Lint, Test, Build
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-20.04
+    strategy:
+      matrix:
+        go: [ '1.15', '1.16' ]
     steps:
     steps:
       -
       -
         name: Checkout
         name: Checkout
@@ -20,7 +23,7 @@ jobs:
         name: Setup Go
         name: Setup Go
         uses: actions/setup-go@v2
         uses: actions/setup-go@v2
         with:
         with:
-          go-version: '1.15.6'
+          go-version: ${{ matrix.go }}
       -
       -
         name: Install Deps
         name: Install Deps
         id: install-deps
         id: install-deps