mirror of
https://github.com/pion/webrtc.git
synced 2025-10-22 14:49:34 +08:00
Update CI configs to v0.11.19
TestBadCertificate is no longer needed for 1.24+ ``` CreateCertificate will now generate a serial number using a RFC 5280 compliant method when passed a template with a nil Certificate.SerialNumber field, instead of failing. ```
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -21,4 +21,4 @@ jobs:
|
||||
release:
|
||||
uses: pion/.goassets/.github/workflows/release.reusable.yml@master
|
||||
with:
|
||||
go-version: "1.22" # auto-update/latest-go-version
|
||||
go-version: "1.24" # auto-update/latest-go-version
|
||||
|
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
uses: pion/.goassets/.github/workflows/test.reusable.yml@master
|
||||
strategy:
|
||||
matrix:
|
||||
go: ["1.23", "1.22"] # auto-update/supported-go-version-list
|
||||
go: ["1.24", "1.23"] # auto-update/supported-go-version-list
|
||||
fail-fast: false
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master
|
||||
strategy:
|
||||
matrix:
|
||||
go: ["1.23", "1.22"] # auto-update/supported-go-version-list
|
||||
go: ["1.24", "1.23"] # auto-update/supported-go-version-list
|
||||
fail-fast: false
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
@@ -41,5 +41,5 @@ jobs:
|
||||
test-wasm:
|
||||
uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master
|
||||
with:
|
||||
go-version: "1.23" # auto-update/latest-go-version
|
||||
go-version: "1.24" # auto-update/latest-go-version
|
||||
secrets: inherit
|
||||
|
2
.github/workflows/tidy-check.yaml
vendored
2
.github/workflows/tidy-check.yaml
vendored
@@ -22,4 +22,4 @@ jobs:
|
||||
tidy:
|
||||
uses: pion/.goassets/.github/workflows/tidy-check.reusable.yml@master
|
||||
with:
|
||||
go-version: "1.22" # auto-update/latest-go-version
|
||||
go-version: "1.24" # auto-update/latest-go-version
|
||||
|
@@ -6,6 +6,6 @@ Files: README.md DESIGN.md **/README.md AUTHORS.txt renovate.json go.mod go.sum
|
||||
Copyright: 2023 The Pion community <https://pion.ly>
|
||||
License: MIT
|
||||
|
||||
Files: testdata/fuzz/* **/testdata/fuzz/* api/*.txt
|
||||
Files: testdata/seed/* testdata/fuzz/* **/testdata/fuzz/* api/*.txt
|
||||
Copyright: 2023 The Pion community <https://pion.ly>
|
||||
License: CC0-1.0
|
||||
|
@@ -104,24 +104,6 @@ func TestGenerateCertificateExpires(t *testing.T) {
|
||||
assert.Contains(t, x509Cert.statsID, "certificate")
|
||||
}
|
||||
|
||||
func TestBadCertificate(t *testing.T) {
|
||||
var nokey interface{}
|
||||
badcert, err := NewCertificate(nokey, x509.Certificate{})
|
||||
assert.Nil(t, badcert)
|
||||
assert.Error(t, err)
|
||||
|
||||
sk, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
|
||||
assert.Nil(t, err)
|
||||
|
||||
badcert, err = NewCertificate(sk, x509.Certificate{})
|
||||
assert.Nil(t, badcert)
|
||||
assert.Error(t, err)
|
||||
|
||||
c0 := Certificate{}
|
||||
c1 := Certificate{}
|
||||
assert.False(t, c0.Equals(c1))
|
||||
}
|
||||
|
||||
func TestPEM(t *testing.T) {
|
||||
sk, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
|
||||
assert.Nil(t, err)
|
||||
|
@@ -18,8 +18,8 @@ while [ -h "$SOURCE" ]; do
|
||||
done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
NODE_WASM_EXEC="$(go env GOROOT)/misc/wasm/wasm_exec_node.js"
|
||||
WASM_EXEC="$(go env GOROOT)/misc/wasm/wasm_exec.js"
|
||||
NODE_WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec_node.js"
|
||||
WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec.js"
|
||||
|
||||
if test -f "$NODE_WASM_EXEC"; then
|
||||
exec node --require="${DIR}/node_shim.js" "$NODE_WASM_EXEC" "$@"
|
||||
|
Reference in New Issue
Block a user