Update CI configs to v0.4.15

Update lint scripts and CI configs.
This commit is contained in:
Pion
2020-11-16 11:35:45 -08:00
committed by Sean DuBois
parent c7a405ce75
commit 6da87f0fcf
+3 -12
View File
@@ -21,16 +21,13 @@ jobs:
with:
go-version: ${{ matrix.go }}
- name: Set test packages
run: echo "TEST_PACKAGES=$(go list ./... | grep -v examples)" >> $GITHUB_ENV
- name: Run test
run: |
go test \
-coverprofile=cover.out -covermode=atomic \
-bench=. \
${TEST_EXTRA_ARGS:-} \
-v -race ${TEST_PACKAGES}
-v -race ./...
- uses: codecov/codecov-action@v1
with:
@@ -57,9 +54,6 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Set test packages
run: echo "TEST_PACKAGES=$(go list ./... | grep -v examples)" >> $GITHUB_ENV
- name: Run test
run: |
docker run \
@@ -73,7 +67,7 @@ jobs:
i386/golang:${{matrix.go}}-alpine \
/usr/local/go/bin/go test \
${TEST_EXTRA_ARGS:-} \
-v ${TEST_PACKAGES}
-v ./...
test-wasm:
runs-on: ubuntu-latest
@@ -95,9 +89,6 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Set test packages
run: echo "TEST_PACKAGES=$(go list ./... | grep -v examples)" >> $GITHUB_ENV
- name: Download Go
run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
env:
@@ -120,7 +111,7 @@ jobs:
GOOS=js GOARCH=wasm $GOPATH/bin/go test \
-coverprofile=cover.out -covermode=atomic \
-exec="${GO_JS_WASM_EXEC}" \
-v ${TEST_PACKAGES}
-v ./...
- uses: codecov/codecov-action@v1
with: