Skip to content

Commit 83df4e2

Browse files
committed
opt: 调整CI
1 parent c82dd13 commit 83df4e2

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/go.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
name: Go
22
on: [push]
33
jobs:
4-
54
build:
65
name: Build
76
runs-on: ubuntu-latest
87
steps:
8+
- name: Set up Go 1.13
9+
uses: actions/setup-go@v1
10+
with:
11+
go-version: 1.20
12+
id: go
913

10-
- name: Set up Go 1.13
11-
uses: actions/setup-go@v1
12-
with:
13-
go-version: 1.13
14-
id: go
15-
16-
- name: Check out code into the Go module directory
17-
uses: actions/checkout@v1
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v1
1816

19-
- name: Get dependencies
20-
run: go get -v -t -d ./...
17+
- name: Get dependencies
18+
run: go get -v -t -d ./...
2119

22-
- name: Test
23-
run: go test -v .
20+
- name: Test
21+
run: go test -v .
2422

25-
- name: Build
26-
run: go build -v .
23+
- name: Build
24+
run: go build -v .

0 commit comments

Comments
 (0)