Skip to content

Commit

Permalink
update go 1.15.*
Browse files Browse the repository at this point in the history
  • Loading branch information
kslr committed Sep 9, 2020
1 parent d3e3f78 commit a8ce582
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
go-version: ^1.15

- name: Checkout codebase
uses: actions/checkout@v2
Expand Down
23 changes: 2 additions & 21 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Linter

on:
push:
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
go-version: ^1.15

- name: Checkout codebase
uses: actions/checkout@v2
Expand All @@ -26,14 +26,6 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-

- name: Lint *.go files
if: ${{ always() }}
run: |
go vet $(go list ./... | grep -v /external/)
if [[ $? != 0 ]]; then
exit 1
fi
- name: Lint other files
if: ${{ always() }}
uses: github/[email protected]
Expand All @@ -48,18 +40,7 @@ jobs:
VALIDATE_MD: false
VALIDATE_PROTOBUF: false

- name: Show if need to format code
if: ${{ always() }}
run: |
filesNeedToFormat=$(go fmt ./...)
if [[ $filesNeedToFormat ]]; then
echo -e "\033[0;36m[Error] The following Go files need to be formatted:\033[0m"
echo -e "\033[0;31m$filesNeedToFormat\033[0m"
exit 1
fi
- name: golangci-lint
if: ${{ always() }}
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
go-version: ^1.15

- name: Checkout codebase
uses: actions/checkout@v2
Expand Down

0 comments on commit a8ce582

Please sign in to comment.