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:
Pion
2025-04-23 14:44:27 +00:00
committed by Sean DuBois
parent 16d809cc6f
commit 2de1ac4285
6 changed files with 8 additions and 26 deletions

View File

@@ -21,4 +21,4 @@ jobs:
release: release:
uses: pion/.goassets/.github/workflows/release.reusable.yml@master uses: pion/.goassets/.github/workflows/release.reusable.yml@master
with: with:
go-version: "1.22" # auto-update/latest-go-version go-version: "1.24" # auto-update/latest-go-version

View File

@@ -23,7 +23,7 @@ jobs:
uses: pion/.goassets/.github/workflows/test.reusable.yml@master uses: pion/.goassets/.github/workflows/test.reusable.yml@master
strategy: strategy:
matrix: 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 fail-fast: false
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
@@ -33,7 +33,7 @@ jobs:
uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master
strategy: strategy:
matrix: 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 fail-fast: false
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
@@ -41,5 +41,5 @@ jobs:
test-wasm: test-wasm:
uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master
with: with:
go-version: "1.23" # auto-update/latest-go-version go-version: "1.24" # auto-update/latest-go-version
secrets: inherit secrets: inherit

View File

@@ -22,4 +22,4 @@ jobs:
tidy: tidy:
uses: pion/.goassets/.github/workflows/tidy-check.reusable.yml@master uses: pion/.goassets/.github/workflows/tidy-check.reusable.yml@master
with: with:
go-version: "1.22" # auto-update/latest-go-version go-version: "1.24" # auto-update/latest-go-version

View File

@@ -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> Copyright: 2023 The Pion community <https://pion.ly>
License: MIT 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> Copyright: 2023 The Pion community <https://pion.ly>
License: CC0-1.0 License: CC0-1.0

View File

@@ -104,24 +104,6 @@ func TestGenerateCertificateExpires(t *testing.T) {
assert.Contains(t, x509Cert.statsID, "certificate") 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) { func TestPEM(t *testing.T) {
sk, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) sk, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
assert.Nil(t, err) assert.Nil(t, err)

View File

@@ -18,8 +18,8 @@ while [ -h "$SOURCE" ]; do
done done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
NODE_WASM_EXEC="$(go env GOROOT)/misc/wasm/wasm_exec_node.js" NODE_WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec_node.js"
WASM_EXEC="$(go env GOROOT)/misc/wasm/wasm_exec.js" WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec.js"
if test -f "$NODE_WASM_EXEC"; then if test -f "$NODE_WASM_EXEC"; then
exec node --require="${DIR}/node_shim.js" "$NODE_WASM_EXEC" "$@" exec node --require="${DIR}/node_shim.js" "$NODE_WASM_EXEC" "$@"