Update go.yml
This commit is contained in:
1 parent
7c1dcbbf14
commit
832b599522
1 file changed
+2
-23
@@ -9,7 +9,7 @@ jobs:
|
||||
GOPATH: ${{ github.workspace }}/go
|
||||
strategy:
|
||||
matrix:
|
||||
go: [1.11, 1.12, 1.13]
|
||||
go: [1.13]
|
||||
steps:
|
||||
|
||||
- name: Set up Go ${{ matrix.go }}
|
||||
@@ -24,26 +24,5 @@ jobs:
|
||||
path: go/src/firebase.google.com/go
|
||||
|
||||
- name: Get dependencies
|
||||
run: go get -t -v $(go list ./... | grep -v integration)
|
||||
run: go build
|
||||
|
||||
- name: Run Linter
|
||||
run: |
|
||||
go get golang.org/x/lint/golint
|
||||
$GOPATH/bin/golint -set_exit_status firebase.google.com/go/...
|
||||
|
||||
- name: Run Unit Tests
|
||||
if: success() || failure()
|
||||
run: go test -v -race -test.short firebase.google.com/go/...
|
||||
|
||||
- name: Run Formatter
|
||||
working-directory: ./go/src/firebase.google.com/go
|
||||
if: matrix.go != '1.11'
|
||||
run: |
|
||||
if [[ ! -z "$(gofmt -l -s .)" ]]; then
|
||||
echo "Go code is not formatted:"
|
||||
gofmt -d -s .
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run Static Analyzer
|
||||
run: go vet -v firebase.google.com/go/...
|
||||
Reference in new issue
Block a user