mirror of
https://github.com/pion/webrtc.git
synced 2025-10-04 14:53:05 +08:00
Update CI configs to v0.2.0
Update lint scripts and CI configs.
This commit is contained in:
30
.github/workflows/renovate-go-mod-fix.yaml
vendored
Normal file
30
.github/workflows/renovate-go-mod-fix.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#
|
||||||
|
# DO NOT EDIT THIS FILE DIRECTLY
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
name: go-mod-fix
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- renovate/*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
go-mod-fix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
- name: fix
|
||||||
|
uses: at-wat/go-sum-fix-action@v0
|
||||||
|
with:
|
||||||
|
git_user: Pion Bot
|
||||||
|
git_email: 59523206+pionbot@users.noreply.github.com
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
commit_style: squash
|
||||||
|
push: force
|
34
.travis.yml
34
.travis.yml
@@ -26,7 +26,7 @@ cache:
|
|||||||
npm: true
|
npm: true
|
||||||
yarn: true
|
yarn: true
|
||||||
|
|
||||||
lint_job: &lint_job
|
_lint_job: &lint_job
|
||||||
env: CACHE_NAME=lint
|
env: CACHE_NAME=lint
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- |
|
||||||
@@ -39,7 +39,7 @@ lint_job: &lint_job
|
|||||||
- bash .github/lint-commit-message.sh
|
- bash .github/lint-commit-message.sh
|
||||||
- bash .github/lint-filename.sh
|
- bash .github/lint-filename.sh
|
||||||
- golangci-lint run ./...
|
- golangci-lint run ./...
|
||||||
test_job: &test_job
|
_test_job: &test_job
|
||||||
env: CACHE_NAME=test
|
env: CACHE_NAME=test
|
||||||
before_install:
|
before_install:
|
||||||
- go mod download
|
- go mod download
|
||||||
@@ -54,14 +54,10 @@ test_job: &test_job
|
|||||||
-v -race ./...
|
-v -race ./...
|
||||||
after_success:
|
after_success:
|
||||||
- travis_retry bash <(curl -s https://codecov.io/bash) -c -F go
|
- travis_retry bash <(curl -s https://codecov.io/bash) -c -F go
|
||||||
test_i386_job: &test_i386_job
|
_test_i386_job: &test_i386_job
|
||||||
env: CACHE_NAME=test386
|
env: CACHE_NAME=test386
|
||||||
language: bash
|
language: bash
|
||||||
services: docker
|
services: docker
|
||||||
install:
|
|
||||||
# i386/golang:1.12-alpine doesn't have git.
|
|
||||||
- echo -e "FROM i386/golang:${GO_VERSION}-alpine\nRUN apk add --no-cache git" > Dockerfile
|
|
||||||
- docker build -t go-tester .
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
docker run \
|
docker run \
|
||||||
@@ -72,11 +68,11 @@ test_i386_job: &test_i386_job
|
|||||||
-v ${HOME}/gopath/pkg/mod:/go/pkg/mod \
|
-v ${HOME}/gopath/pkg/mod:/go/pkg/mod \
|
||||||
-v ${HOME}/.cache/go-build:/.cache/go-build \
|
-v ${HOME}/.cache/go-build:/.cache/go-build \
|
||||||
-w /go/src/github.com/pion/$(basename ${PWD}) \
|
-w /go/src/github.com/pion/$(basename ${PWD}) \
|
||||||
-it go-tester \
|
-it i386/golang:${GO_VERSION}-alpine \
|
||||||
/usr/local/go/bin/go test \
|
/usr/local/go/bin/go test \
|
||||||
-tags quic \
|
-tags quic \
|
||||||
-v ./...
|
-v ./...
|
||||||
test_wasm_job: &test_wasm_job
|
_test_wasm_job: &test_wasm_job
|
||||||
env: CACHE_NAME=wasm
|
env: CACHE_NAME=wasm
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: 12
|
node_js: 12
|
||||||
@@ -107,24 +103,26 @@ test_wasm_job: &test_wasm_job
|
|||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- <<: *lint_job
|
- <<: *lint_job
|
||||||
name: Lint 1.13
|
name: Lint 1.14
|
||||||
go: 1.13
|
go: 1.14
|
||||||
- <<: *test_job
|
|
||||||
name: Test 1.12
|
|
||||||
go: 1.12
|
|
||||||
- <<: *test_job
|
- <<: *test_job
|
||||||
name: Test 1.13
|
name: Test 1.13
|
||||||
go: 1.13
|
go: 1.13
|
||||||
- <<: *test_i386_job
|
- <<: *test_job
|
||||||
name: Test i386 1.12
|
name: Test 1.14
|
||||||
env: GO_VERSION=1.12
|
go: 1.14
|
||||||
- <<: *test_i386_job
|
- <<: *test_i386_job
|
||||||
name: Test i386 1.13
|
name: Test i386 1.13
|
||||||
env: GO_VERSION=1.13
|
env: GO_VERSION=1.13
|
||||||
|
- <<: *test_i386_job
|
||||||
|
name: Test i386 1.14
|
||||||
|
env: GO_VERSION=1.14
|
||||||
- <<: *test_wasm_job
|
- <<: *test_wasm_job
|
||||||
name: Test WASM 1.13
|
name: Test WASM 1.13
|
||||||
# Requires Go1.13 syscall/js
|
|
||||||
env: GO_VERSION=1.13
|
env: GO_VERSION=1.13
|
||||||
|
- <<: *test_wasm_job
|
||||||
|
name: Test WASM 1.14
|
||||||
|
env: GO_VERSION=1.14
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
@@ -13,6 +13,7 @@ coverage:
|
|||||||
patch:
|
patch:
|
||||||
default:
|
default:
|
||||||
target: 70%
|
target: 70%
|
||||||
|
only_pulls: true
|
||||||
|
|
||||||
ignore:
|
ignore:
|
||||||
- "examples/*"
|
- "examples/*"
|
||||||
|
Reference in New Issue
Block a user