We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d49d93 commit 0c83fdfCopy full SHA for 0c83fdf
.github/workflows/go.yml
@@ -1,7 +1,8 @@
1
name: Go
2
+
3
on: [push]
-jobs:
4
5
+jobs:
6
build:
7
name: Build
8
runs-on: ubuntu-latest
@@ -15,12 +16,16 @@ jobs:
15
16
uses: actions/checkout@v2
17
- name: Get dependencies
18
run: |
- go get -v -t -d ./...
19
- if [ -f Gopkg.toml ]; then
20
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
21
- dep ensure
22
- fi
+ export GO111MODULE=on
+ go mod download
23
- name: Lint
24
- run: scopelint ./...
+ run: |
+ scopelint ./...
+ - name: fmt
25
+ run: go fmt ./...
26
+ - name: vet
27
+ run: go vet ./...
28
- name: Build
- run: go build -v .
29
+ run: go build -v .
30
31
0 commit comments