mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-22 15:57:27 +08:00
Upgrade CI go versions for tests (#416)
* Upgrade CI go versions for tests * Upgrade CI go versions for tests * fix buffer tests with wrong error log format
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
go: [ '1.16', '1.15' ]
|
||||
go: [ '1.18', '1.17' ]
|
||||
name: Linux Go ${{ matrix.go }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -33,13 +33,13 @@ jobs:
|
||||
- name: Run Test Suite
|
||||
run: make test
|
||||
- uses: codecov/codecov-action@v3
|
||||
if: matrix.go == '1.16'
|
||||
if: matrix.go == '1.18'
|
||||
build-darwin:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
go: [ '1.16', '1.15' ]
|
||||
go: [ '1.18', '1.17' ]
|
||||
name: Darwin Go ${{ matrix.go }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.16'
|
||||
go-version: '1.17'
|
||||
- name: Installing go-licenses
|
||||
run: go get github.com/google/go-licenses
|
||||
- name: Checking licenses
|
||||
|
||||
@@ -53,7 +53,7 @@ func TestBufferStoreCopyAndLoad(t *testing.T) {
|
||||
for i := range cloneReal.Data {
|
||||
if reflect.ValueOf(originalReal.Data[i]).Pointer() == reflect.ValueOf(cloneReal.Data[i]).Pointer() {
|
||||
err := fmt.Errorf("Channel %d memory address should be different", i)
|
||||
t.Errorf("%v: %w", errIdenticalAddress, err)
|
||||
t.Errorf("%v: %s", errIdenticalAddress, err)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -89,7 +89,7 @@ func TestBufferStoreCopyAndLoad(t *testing.T) {
|
||||
for i := range cloneReal.Data {
|
||||
if reflect.ValueOf(originalReal.Data[i]).Pointer() == reflect.ValueOf(cloneReal.Data[i]).Pointer() {
|
||||
err := fmt.Errorf("Channel %d memory address should be different", i)
|
||||
t.Errorf("%v: %w", errIdenticalAddress, err)
|
||||
t.Errorf("%v: %s", errIdenticalAddress, err)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user