Add tests with GoLang 1.16-RC to the pipeline

This commit is contained in:
Deluan Quintão
2021-02-03 14:39:59 -05:00
committed by GitHub
parent 618d5fc81f
commit 9a3e75be00
+11 -5
View File
@@ -26,16 +26,20 @@ jobs:
args: --timeout 2m args: --timeout 2m
go: go:
name: Test Server name: Test Server with Go ${{ matrix.go_version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
go_version: [1.15.x, 1.16.0-rc1]
steps: steps:
- name: Install taglib - name: Install taglib
run: sudo apt-get install libtag1-dev run: sudo apt-get install libtag1-dev
- name: Set up Go 1.15 - name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.15 stable: '!contains(${{ matrix.go_version }}, "beta") && !contains(${{ matrix.go_version }}, "rc")'
go-version: ${{ matrix.go_version }}
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -45,15 +49,17 @@ jobs:
id: cache-go id: cache-go
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ matrix.go_version }}-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-${{ matrix.go_version }}-
- name: Download dependencies - name: Download dependencies
if: steps.cache-go.outputs.cache-hit != 'true' if: steps.cache-go.outputs.cache-hit != 'true'
continue-on-error: ${{contains(matrix.go_version, 'beta') || contains(matrix.go_version, 'rc')}}
run: go mod download run: go mod download
- name: Test - name: Test
continue-on-error: ${{contains(matrix.go_version, 'beta') || contains(matrix.go_version, 'rc')}}
run: go test -cover ./... -v run: go test -cover ./... -v
js: js:
name: Build JS bundle name: Build JS bundle