File tree Expand file tree Collapse file tree 3 files changed +53
-4
lines changed Expand file tree Collapse file tree 3 files changed +53
-4
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,22 @@ jobs:
11
11
e2e-kind :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v1
14
+
15
+ - uses : actions/checkout@v3
16
+
15
17
- uses : actions/setup-go@v3
16
18
with :
17
- go-version-file : " go.mod"
19
+ go-version-file : go.mod
20
+
21
+ - uses : actions/cache@v3
22
+ with :
23
+ path : |
24
+ ~/.cache/go-build
25
+ ~/go/pkg/mod
26
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-go-
29
+
18
30
- name : Run e2e tests
19
31
run : |
20
32
make e2e
Original file line number Diff line number Diff line change
1
+ name : go-apidiff
2
+ on : [ pull_request ]
3
+ jobs :
4
+ go-apidiff :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+
8
+ - uses : actions/checkout@v3
9
+ with :
10
+ fetch-depth : 0
11
+
12
+ - uses : actions/setup-go@v3
13
+ with :
14
+ go-version-file : go.mod
15
+
16
+ - uses : actions/cache@v3
17
+ with :
18
+ path : |
19
+ ~/.cache/go-build
20
+ ~/go/pkg/mod
21
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
22
+ restore-keys : |
23
+ ${{ runner.os }}-go-
24
+
25
+ - uses : joelanford/go-apidiff@main
Original file line number Diff line number Diff line change @@ -11,10 +11,22 @@ jobs:
11
11
unit-test-basic :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v1
14
+
15
+ - uses : actions/checkout@v3
16
+
15
17
- uses : actions/setup-go@v3
16
18
with :
17
- go-version-file : " go.mod"
19
+ go-version-file : go.mod
20
+
21
+ - uses : actions/cache@v3
22
+ with :
23
+ path : |
24
+ ~/.cache/go-build
25
+ ~/go/pkg/mod
26
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-go-
29
+
18
30
- name : Run basic unit tests
19
31
run : |
20
32
make test
You can’t perform that action at this time.
0 commit comments