Skip to content

Commit 101ebf3

Browse files
authored
Update CI - Merge building and testing steps (#8)
* Update CI - Merge building and testing steps * Rename job
1 parent 1f716f9 commit 101ebf3

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: build-test
22

33
on:
44
push:
@@ -7,10 +7,10 @@ on:
77
branches: [ main ]
88

99
jobs:
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 }}

0 commit comments

Comments
 (0)