Skip to content

Commit 0c83fdf

Browse files
committed
Update action yml
1 parent 2d49d93 commit 0c83fdf

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/go.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Go
2+
23
on: [push]
3-
jobs:
44

5+
jobs:
56
build:
67
name: Build
78
runs-on: ubuntu-latest
@@ -15,12 +16,16 @@ jobs:
1516
uses: actions/checkout@v2
1617
- name: Get dependencies
1718
run: |
18-
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
19+
export GO111MODULE=on
20+
go mod download
2321
- name: Lint
24-
run: scopelint ./...
22+
run: |
23+
scopelint ./...
24+
- name: fmt
25+
run: go fmt ./...
26+
- name: vet
27+
run: go vet ./...
2528
- name: Build
26-
run: go build -v .
29+
run: go build -v .
30+
31+

0 commit comments

Comments
 (0)