mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Update CI configs to v0.5.9
Update lint scripts and CI configs.
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
#
|
||||
# DO NOT EDIT THIS FILE
|
||||
#
|
||||
# It is automatically copied from https://github.com/pion/.goassets repository.
|
||||
# If this repository should have package specific CI config,
|
||||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
|
||||
#
|
||||
# If you want to update the shared CI config, send a PR to
|
||||
# https://github.com/pion/.goassets instead of this repository.
|
||||
#
|
||||
|
||||
name: generate-authors
|
||||
|
||||
on:
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
#
|
||||
# DO NOT EDIT THIS FILE
|
||||
#
|
||||
# It is automatically copied from https://github.com/pion/.goassets repository.
|
||||
# If this repository should have package specific CI config,
|
||||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
|
||||
#
|
||||
# If you want to update the shared CI config, send a PR to
|
||||
# https://github.com/pion/.goassets instead of this repository.
|
||||
#
|
||||
|
||||
name: Lint
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
+36
-16
@@ -1,3 +1,14 @@
|
||||
#
|
||||
# DO NOT EDIT THIS FILE
|
||||
#
|
||||
# It is automatically copied from https://github.com/pion/.goassets repository.
|
||||
# If this repository should have package specific CI config,
|
||||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
|
||||
#
|
||||
# If you want to update the shared CI config, send a PR to
|
||||
# https://github.com/pion/.goassets instead of this repository.
|
||||
#
|
||||
|
||||
name: Test
|
||||
on:
|
||||
push:
|
||||
@@ -39,9 +50,17 @@ jobs:
|
||||
|
||||
- name: Run test
|
||||
run: |
|
||||
TEST_BENCH_OPTION="-bench=."
|
||||
if [ -f .github/.ci.conf ]; then . .github/.ci.conf; fi
|
||||
|
||||
go-acc -o cover.out ./... -- \
|
||||
-bench=. \
|
||||
-v -race
|
||||
${TEST_BENCH_OPTION} \
|
||||
-v -race
|
||||
|
||||
- name: Run TEST_HOOK
|
||||
run: |
|
||||
if [ -f .github/.ci.conf ]; then . .github/.ci.conf; fi
|
||||
if [ -n "${TEST_HOOK}" ]; then ${TEST_HOOK}; fi
|
||||
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
@@ -73,17 +92,17 @@ jobs:
|
||||
run: |
|
||||
mkdir -p $HOME/go/pkg/mod $HOME/.cache
|
||||
docker run \
|
||||
-u $(id -u):$(id -g) \
|
||||
-e "GO111MODULE=on" \
|
||||
-e "CGO_ENABLED=0" \
|
||||
-v $GITHUB_WORKSPACE:/go/src/github.com/pion/$(basename $GITHUB_WORKSPACE) \
|
||||
-v $HOME/go/pkg/mod:/go/pkg/mod \
|
||||
-v $HOME/.cache:/.cache \
|
||||
-w /go/src/github.com/pion/$(basename $GITHUB_WORKSPACE) \
|
||||
i386/golang:${{matrix.go}}-alpine \
|
||||
/usr/local/go/bin/go test \
|
||||
${TEST_EXTRA_ARGS:-} \
|
||||
-v ./...
|
||||
-u $(id -u):$(id -g) \
|
||||
-e "GO111MODULE=on" \
|
||||
-e "CGO_ENABLED=0" \
|
||||
-v $GITHUB_WORKSPACE:/go/src/github.com/pion/$(basename $GITHUB_WORKSPACE) \
|
||||
-v $HOME/go/pkg/mod:/go/pkg/mod \
|
||||
-v $HOME/.cache:/.cache \
|
||||
-w /go/src/github.com/pion/$(basename $GITHUB_WORKSPACE) \
|
||||
i386/golang:${{matrix.go}}-alpine \
|
||||
/usr/local/go/bin/go test \
|
||||
${TEST_EXTRA_ARGS:-} \
|
||||
-v ./...
|
||||
|
||||
test-wasm:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -126,10 +145,11 @@ jobs:
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
if [ -f .github/.ci.conf ]; then . .github/.ci.conf; fi
|
||||
GOOS=js GOARCH=wasm $GOPATH/bin/go test \
|
||||
-coverprofile=cover.out -covermode=atomic \
|
||||
-exec="${GO_JS_WASM_EXEC}" \
|
||||
-v ./...
|
||||
-coverprofile=cover.out -covermode=atomic \
|
||||
-exec="${GO_JS_WASM_EXEC}" \
|
||||
-v ./...
|
||||
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user