mirror of
https://github.com/pion/webrtc.git
synced 2025-09-26 19:21:12 +08:00
Update CI configs to v0.6.6
Update lint scripts and CI configs.
This commit is contained in:
4
.github/workflows/test.yaml
vendored
4
.github/workflows/test.yaml
vendored
@@ -115,7 +115,7 @@ jobs:
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '12.x'
|
||||
node-version: '16.x'
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
@@ -129,7 +129,7 @@ jobs:
|
||||
- name: Download Go
|
||||
run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
|
||||
env:
|
||||
GO_VERSION: 1.16
|
||||
GO_VERSION: 1.17
|
||||
|
||||
- name: Set Go Root
|
||||
run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV
|
||||
|
@@ -23,7 +23,6 @@ func awaitPromise(promise js.Value) (js.Value, error) {
|
||||
return js.Undefined()
|
||||
})
|
||||
defer thenFunc.Release()
|
||||
promise.Call("then", thenFunc)
|
||||
|
||||
catchFunc := js.FuncOf(func(this js.Value, args []js.Value) interface{} {
|
||||
go func() {
|
||||
@@ -32,7 +31,8 @@ func awaitPromise(promise js.Value) (js.Value, error) {
|
||||
return js.Undefined()
|
||||
})
|
||||
defer catchFunc.Release()
|
||||
promise.Call("catch", catchFunc)
|
||||
|
||||
promise.Call("then", thenFunc).Call("catch", catchFunc)
|
||||
|
||||
select {
|
||||
case result := <-resultsChan:
|
||||
|
Reference in New Issue
Block a user