-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,583 changed files
with
97,762 additions
and
43,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,11 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.12.x, 1.15.x] | ||
go-version: [1.14.x, 1.17.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
- uses: WillAbides/setup-go[email protected] | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,43 +7,35 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.12.x, 1.15.x] | ||
go-version: [1.14.x, 1.17.x] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
- uses: WillAbides/[email protected] | ||
id: setup-go-faster | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Get dependencies | ||
run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev | ||
if: ${{ runner.os == 'Linux' }} | ||
|
||
#- name: Verify go modules | ||
# run: | | ||
# if [ "$GO111MODULE" == "on" ] | ||
# then | ||
# # For some reason `git diff-index HEAD` does not work properly if the following line is missing. | ||
# git diff | ||
# # check that go mod tidy does not change go.mod/go.sum | ||
# go mod tidy && git diff-index --quiet HEAD -- || ( echo "go.mod/go.sum not up-to-date"; git diff-index HEAD --; false ) | ||
# fi | ||
|
||
- name: Tests | ||
run: go test -tags ci ./... | ||
|
||
- name: Update coverage | ||
run: | | ||
GO111MODULE=off go get github.com/mattn/goveralls | ||
set -e | ||
go test -tags ci -covermode=atomic -coverprofile=coverage.out ./... | ||
if [ $coverage -lt 69 ]; then echo "Test coverage lowered"; exit 1; fi | ||
if: ${{ runner.os == 'Linux' }} | ||
|
||
- name: Update PR Coverage | ||
uses: shogo82148/actions-goveralls@v1 | ||
env: | ||
GOROOT: ${{steps.setup-go-faster.outputs.GOROOT}} | ||
with: | ||
path-to-profile: coverage.out | ||
if: ${{ runner.os == 'Linux' && github.event_name == 'push' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,18 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
- uses: WillAbides/setup-go[email protected] | ||
with: | ||
go-version: '^1.15.x' | ||
go-version: '1.16.x' | ||
|
||
- name: Get dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev | ||
GO111MODULE=off go get golang.org/x/tools/cmd/goimports | ||
GO111MODULE=off go get github.com/fzipp/gocyclo/cmd/gocyclo | ||
GO111MODULE=off go get golang.org/x/lint/golint | ||
GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck | ||
go install golang.org/x/tools/cmd/goimports@latest | ||
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | ||
go install golang.org/x/lint/golint@latest | ||
go install honnef.co/go/tools/cmd/[email protected] | ||
- name: Cleanup repository | ||
run: rm -rf vendor/ | ||
|
||
|
@@ -27,10 +28,10 @@ jobs: | |
run: test -z $(goimports -e -d . | tee /dev/stderr) | ||
|
||
- name: Gocyclo | ||
run: gocyclo -over 50 . | ||
run: gocyclo -over 30 . | ||
|
||
- name: Golint | ||
run: golint -set_exit_status $(go list -tags ci ./...) | ||
|
||
- name: Staticcheck | ||
run: CGO_ENABLED=1 staticcheck -f stylish ./... | ||
run: staticcheck -go 1.14 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ Storm Hess <[email protected]> | |
Stuart Scott <[email protected]> | ||
Jacob Alzén <> | ||
Charles A. Daniels <[email protected]> | ||
Pablo Fuentes <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.