Commit a399aca 1 parent eae2b4e commit a399aca Copy full SHA for a399aca
File tree 2 files changed +35
-22
lines changed
2 files changed +35
-22
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ jobs:
11
11
name : Run
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - name : Checkout source code
15
- uses : actions/checkout@v1
16
- - name : Mirror Github to Gitee
17
- uses : Yikun/hub-mirror-action@v1.2
18
- with :
19
- src : github/go-kratos
20
- dst : gitee/go-kratos
21
- dst_key : ${{ secrets.GITEE_PRIVATE_KEY }}
22
- dst_token : ${{ secrets.GITEE_TOKEN }}
23
- account_type : org
24
- timeout : 600
25
- debug : true
26
- force_update : true
27
- static_list : " kratos-layout"
14
+ - name : Checkout source code
15
+ uses : actions/checkout@v4
16
+ - name : Mirror Github to Gitee
17
+ uses : Yikun/hub-mirror-action@v1.3
18
+ with :
19
+ src : github/go-kratos
20
+ dst : gitee/go-kratos
21
+ dst_key : ${{ secrets.GITEE_PRIVATE_KEY }}
22
+ dst_token : ${{ secrets.GITEE_TOKEN }}
23
+ account_type : org
24
+ timeout : 600
25
+ debug : true
26
+ force_update : true
27
+ static_list : " kratos-layout"
Original file line number Diff line number Diff line change @@ -2,24 +2,37 @@ name: Go
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches : [main]
6
6
pull_request :
7
- branches : [ main ]
7
+ branches : [main]
8
8
9
9
jobs :
10
-
11
10
build :
12
11
name : Build
13
12
runs-on : ubuntu-latest
14
13
steps :
14
+ - name : Check out code into the Go module directory
15
+ uses : actions/checkout@v4
15
16
16
17
- name : Set up Go 1.x
17
- uses : actions/setup-go@v2
18
+ uses : actions/setup-go@v5.0.0
18
19
with :
19
- go-version : ^1.13
20
+ go-version : ^1.19
20
21
21
- - name : Check out code into the Go module directory
22
- uses : actions/checkout@v2
22
+ - name : Setup Environment
23
+ run : |
24
+ echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
25
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
26
+
27
+ - name : Module cache
28
+ uses : actions/cache@v4
29
+ with :
30
+ path : |
31
+ ~/.cache/go-build
32
+ ~/go/pkg/mod
33
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
34
+ restore-keys : |
35
+ ${{ runner.os }}-go
23
36
24
37
- name : Get dependencies
25
38
run : |
33
46
run : go build -v ./...
34
47
35
48
- name : Test
36
- run : go test -v ./...
49
+ run : go test -v ./...
You can’t perform that action at this time.
0 commit comments