File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : node-crawler workflow
2
+
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+ tags :
9
+ - ' **'
10
+ pull_request :
11
+ branches :
12
+ - master
13
+ workflow_dispatch :
14
+
15
+ jobs :
16
+ lint :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - name : Set up Go
21
+ uses : actions/setup-go@v2
22
+ with :
23
+ go-version : 1.20.5
24
+ - name : Download golangci-lint
25
+ run : wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s latest
26
+ - name : Lint
27
+ run : ./bin/golangci-lint run --config .golangci.yml
28
+ - name : Vet
29
+ run : go vet
30
+
31
+ test :
32
+ runs-on : ubuntu-latest
33
+ needs : lint
34
+ steps :
35
+ - uses : actions/checkout@v2
36
+ - name : Set up Go
37
+ uses : actions/setup-go@v2
38
+ with :
39
+ go-version : 1.20.5
40
+ - name : Test
41
+ run : go test -v ./...
You can’t perform that action at this time.
0 commit comments