File tree Expand file tree Collapse file tree 1 file changed +5
-27
lines changed
Expand file tree Collapse file tree 1 file changed +5
-27
lines changed Original file line number Diff line number Diff line change 1- name : build
1+ name : build-test
22
33on :
44 push :
77 branches : [ main ]
88
99jobs :
10-
11- build :
12- name : Build
10+ build-test :
11+ name : Build & Test
1312 runs-on : ubuntu-latest
13+ timeout-minutes : 1
1414 steps :
1515
1616 - name : Set up Go 1.19
@@ -33,33 +33,11 @@ jobs:
3333 - name : Build
3434 run : go build -v .
3535
36- test :
37- name : Test
38- runs-on : ubuntu-latest
39- steps :
40-
41- - name : Set up Go 1.19
42- uses : actions/setup-go@v5
43- with :
44- go-version : ^1.19
45- id : go
46-
47- - name : Check out code into the Go module directory
48- uses : actions/checkout@v4
49-
50- - name : Get dependencies
51- run : |
52- go get -v -t -d ./...
53- if [ -f Gopkg.toml ]; then
54- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
55- dep ensure
56- fi
57-
5836 - name : Test
5937 run : go test -v -coverprofile=coverage.out .
6038
6139 - name : Codecov
6240 uses : codecov/codecov-action@v4
6341 with :
6442 file : ./coverage.out
65- token : ${{ secrets.CODECOV_TOKEN }}
43+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments