Skip to content

Commit bd657af

Browse files
committed
Hello pion test
1 parent 26cdcde commit bd657af

File tree

11 files changed

+630
-20
lines changed

11 files changed

+630
-20
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232

33+
- name: Setup Go
34+
uses: actions/setup-go@v5
35+
with:
36+
go-version-file: "go.mod"
37+
3338
- name: Setup Node.js
3439
uses: actions/setup-node@v4
3540
with:

.golangci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ linters:
99
- bodyclose # checks whether HTTP response body is closed successfully
1010
- containedctx # containedctx is a linter that detects struct contained context.Context field
1111
- contextcheck # check the function whether use a non-inherited context
12-
- cyclop # checks function and package cyclomatic complexity
1312
- decorder # check declaration order and count of types, constants, variables and functions
1413
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f())
1514
- dupl # Tool for code clone detection
@@ -23,7 +22,6 @@ linters:
2322
- forbidigo # Forbids identifiers
2423
- forcetypeassert # finds forced type assertions
2524
- gochecknoglobals # Checks that no globals are present in Go code
26-
- gocognit # Computes and checks the cognitive complexity of functions
2725
- goconst # Finds repeated strings that could be replaced by a constant
2826
- gocritic # The most opinionated Go source code linter
2927
- gocyclo # Computes and checks the cyclomatic complexity of functions
@@ -86,11 +84,8 @@ linters:
8684
default-signifies-exhaustive: true
8785
forbidigo:
8886
forbid:
89-
- pattern: ^fmt.Print(f|ln)?$
90-
- pattern: ^log.(Panic|Fatal|Print)(f|ln)?$
9187
- pattern: ^os.Exit$
9288
- pattern: ^panic$
93-
- pattern: ^print(ln)?$
9489
- pattern: ^testing.T.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)$
9590
pkg: ^testing$
9691
msg: use testify/assert instead

go.mod

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
module github.com/pion/browsertests
22

3-
go 1.21
3+
go 1.21.0
4+
5+
toolchain go1.24.10
6+
7+
require github.com/pion/webrtc/v4 v4.2.3
8+
9+
require (
10+
github.com/google/uuid v1.6.0 // indirect
11+
github.com/pion/datachannel v1.6.0 // indirect
12+
github.com/pion/dtls/v3 v3.0.10 // indirect
13+
github.com/pion/ice/v4 v4.2.0 // indirect
14+
github.com/pion/interceptor v0.1.43 // indirect
15+
github.com/pion/logging v0.2.4 // indirect
16+
github.com/pion/mdns/v2 v2.1.0 // indirect
17+
github.com/pion/randutil v0.1.0 // indirect
18+
github.com/pion/rtcp v1.2.16 // indirect
19+
github.com/pion/rtp v1.10.0 // indirect
20+
github.com/pion/sctp v1.9.2 // indirect
21+
github.com/pion/sdp/v3 v3.0.17 // indirect
22+
github.com/pion/srtp/v3 v3.0.10 // indirect
23+
github.com/pion/stun/v3 v3.1.1 // indirect
24+
github.com/pion/transport/v4 v4.0.1 // indirect
25+
github.com/pion/turn/v4 v4.1.4 // indirect
26+
github.com/wlynxg/anet v0.0.5 // indirect
27+
golang.org/x/crypto v0.33.0 // indirect
28+
golang.org/x/net v0.35.0 // indirect
29+
golang.org/x/sys v0.30.0 // indirect
30+
golang.org/x/time v0.10.0 // indirect
31+
)

go.sum

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3+
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
4+
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
5+
github.com/pion/datachannel v1.6.0 h1:XecBlj+cvsxhAMZWFfFcPyUaDZtd7IJvrXqlXD/53i0=
6+
github.com/pion/datachannel v1.6.0/go.mod h1:ur+wzYF8mWdC+Mkis5Thosk+u/VOL287apDNEbFpsIk=
7+
github.com/pion/dtls/v3 v3.0.10 h1:k9ekkq1kaZoxnNEbyLKI8DI37j/Nbk1HWmMuywpQJgg=
8+
github.com/pion/dtls/v3 v3.0.10/go.mod h1:YEmmBYIoBsY3jmG56dsziTv/Lca9y4Om83370CXfqJ8=
9+
github.com/pion/ice/v4 v4.2.0 h1:jJC8S+CvXCCvIQUgx+oNZnoUpt6zwc34FhjWwCU4nlw=
10+
github.com/pion/ice/v4 v4.2.0/go.mod h1:EgjBGxDgmd8xB0OkYEVFlzQuEI7kWSCFu+mULqaisy4=
11+
github.com/pion/interceptor v0.1.43 h1:6hmRfnmjogSs300xfkR0JxYFZ9k5blTEvCD7wxEDuNQ=
12+
github.com/pion/interceptor v0.1.43/go.mod h1:BSiC1qKIJt1XVr3l3xQ2GEmCFStk9tx8fwtCZxxgR7M=
13+
github.com/pion/logging v0.2.4 h1:tTew+7cmQ+Mc1pTBLKH2puKsOvhm32dROumOZ655zB8=
14+
github.com/pion/logging v0.2.4/go.mod h1:DffhXTKYdNZU+KtJ5pyQDjvOAh/GsNSyv1lbkFbe3so=
15+
github.com/pion/mdns/v2 v2.1.0 h1:3IJ9+Xio6tWYjhN6WwuY142P/1jA0D5ERaIqawg/fOY=
16+
github.com/pion/mdns/v2 v2.1.0/go.mod h1:pcez23GdynwcfRU1977qKU0mDxSeucttSHbCSfFOd9A=
17+
github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA=
18+
github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8=
19+
github.com/pion/rtcp v1.2.16 h1:fk1B1dNW4hsI78XUCljZJlC4kZOPk67mNRuQ0fcEkSo=
20+
github.com/pion/rtcp v1.2.16/go.mod h1:/as7VKfYbs5NIb4h6muQ35kQF/J0ZVNz2Z3xKoCBYOo=
21+
github.com/pion/rtp v1.10.0 h1:XN/xca4ho6ZEcijpdF2VGFbwuHUfiIMf3ew8eAAE43w=
22+
github.com/pion/rtp v1.10.0/go.mod h1:rF5nS1GqbR7H/TCpKwylzeq6yDM+MM6k+On5EgeThEM=
23+
github.com/pion/sctp v1.9.2 h1:HxsOzEV9pWoeggv7T5kewVkstFNcGvhMPx0GvUOUQXo=
24+
github.com/pion/sctp v1.9.2/go.mod h1:OTOlsQ5EDQ6mQ0z4MUGXt2CgQmKyafBEXhUVqLRB6G8=
25+
github.com/pion/sdp/v3 v3.0.17 h1:9SfLAW/fF1XC8yRqQ3iWGzxkySxup4k4V7yN8Fs8nuo=
26+
github.com/pion/sdp/v3 v3.0.17/go.mod h1:9tyKzznud3qiweZcD86kS0ff1pGYB3VX+Bcsmkx6IXo=
27+
github.com/pion/srtp/v3 v3.0.10 h1:tFirkpBb3XccP5VEXLi50GqXhv5SKPxqrdlhDCJlZrQ=
28+
github.com/pion/srtp/v3 v3.0.10/go.mod h1:3mOTIB0cq9qlbn59V4ozvv9ClW/BSEbRp4cY0VtaR7M=
29+
github.com/pion/stun/v3 v3.1.1 h1:CkQxveJ4xGQjulGSROXbXq94TAWu8gIX2dT+ePhUkqw=
30+
github.com/pion/stun/v3 v3.1.1/go.mod h1:qC1DfmcCTQjl9PBaMa5wSn3x9IPmKxSdcCsxBcDBndM=
31+
github.com/pion/transport/v3 v3.1.1 h1:Tr684+fnnKlhPceU+ICdrw6KKkTms+5qHMgw6bIkYOM=
32+
github.com/pion/transport/v3 v3.1.1/go.mod h1:+c2eewC5WJQHiAA46fkMMzoYZSuGzA/7E2FPrOYHctQ=
33+
github.com/pion/transport/v4 v4.0.1 h1:sdROELU6BZ63Ab7FrOLn13M6YdJLY20wldXW2Cu2k8o=
34+
github.com/pion/transport/v4 v4.0.1/go.mod h1:nEuEA4AD5lPdcIegQDpVLgNoDGreqM/YqmEx3ovP4jM=
35+
github.com/pion/turn/v4 v4.1.4 h1:EU11yMXKIsK43FhcUnjLlrhE4nboHZq+TXBIi3QpcxQ=
36+
github.com/pion/turn/v4 v4.1.4/go.mod h1:ES1DXVFKnOhuDkqn9hn5VJlSWmZPaRJLyBXoOeO/BmQ=
37+
github.com/pion/webrtc/v4 v4.2.3 h1:RtdWDnkenNQGxUrZqWa5gSkTm5ncsLg5d+zu0M4cXt4=
38+
github.com/pion/webrtc/v4 v4.2.3/go.mod h1:7vsyFzRzaKP5IELUnj8zLcglPyIT6wWwqTppBZ1k6Kc=
39+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
40+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
41+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
42+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
43+
github.com/wlynxg/anet v0.0.5 h1:J3VJGi1gvo0JwZ/P1/Yc/8p63SoW98B5dHkYDmpgvvU=
44+
github.com/wlynxg/anet v0.0.5/go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA=
45+
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
46+
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
47+
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
48+
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
49+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
50+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
51+
golang.org/x/time v0.10.0 h1:3usCWA8tQn0L8+hFJQNgzpWbd89begxN66o1Ojdn5L4=
52+
golang.org/x/time v0.10.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
53+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
54+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

package-lock.json

Lines changed: 49 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"type": "module",
2424
"main": "index.js",
2525
"scripts": {
26-
"test": "vitest run",
27-
"test:browser": "vitest run",
28-
"test:chrome": "cross-env TEST_BROWSER=chrome vitest run",
29-
"test:firefox": "cross-env TEST_BROWSER=firefox vitest run",
30-
"test:edge": "cross-env TEST_BROWSER=edge vitest run",
31-
"test:safari": "cross-env TEST_BROWSER=safari vitest run"
26+
"test": "node scripts/run-browser-tests.ts",
27+
"test:browser": "node scripts/run-browser-tests.ts",
28+
"test:chrome": "cross-env TEST_BROWSER=chrome node scripts/run-browser-tests.ts",
29+
"test:firefox": "cross-env TEST_BROWSER=firefox node scripts/run-browser-tests.ts",
30+
"test:edge": "cross-env TEST_BROWSER=edge node scripts/run-browser-tests.ts",
31+
"test:safari": "cross-env TEST_BROWSER=safari node scripts/run-browser-tests.ts"
3232
},
3333
"devDependencies": {
3434
"@vitest/browser": "^4.0.17",

0 commit comments

Comments
 (0)