]> Sergey Matveev's repositories - btrtrc.git/blobdiff - .github/workflows/go.yml
Also run Go CI test job on 1.19
[btrtrc.git] / .github / workflows / go.yml
index af1530ffe3d72ae78d29c769414e151e6429496a..3ff16fbe51e4b1f34815d773e294d898c11d689c 100644 (file)
@@ -6,10 +6,11 @@ jobs:
 
   test:
     timeout-minutes: 30
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        go-version: [ 'tip' ]
+        go-version: [ '1.19', '1.20' ]
+        os: [windows-latest, macos-latest, ubuntu-latest]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -20,7 +21,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ 'tip' ]
+        go-version: [ '1.20' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -31,7 +32,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ 'tip' ]
+        go-version: [ '1.20' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -42,7 +43,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ 'tip' ]
+        go-version: [ '1.20' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -54,19 +55,19 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ 'tip' ]
+        go-version: [ '1.20' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
     - uses: ./.github/actions/go-common
     - name: Some packages compile for WebAssembly
-      run: GOOS=js GOARCH=wasm go build -v . ./storage ./tracker/...
+      run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
 
   torrentfs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go-version: [ 'tip' ]
+        go-version: [ '1.20' ]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2