Skip to content

Commit a9e30fd

Browse files
authored
Merge pull request #98 from joelanford/go-apidiff
Add optional go-apidiff test to CI
2 parents 4f51a5d + 191629d commit a9e30fd

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/go.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,29 @@ jobs:
1111
name: Build
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Set up Go 1.15
15-
uses: actions/setup-go@v1.1.3
14+
- name: Set up Go
15+
uses: actions/setup-go@v2
1616
with:
1717
go-version: 1.15
1818
id: go
1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v2.0.0
20+
uses: actions/checkout@v2
2121
- name: unit-test
2222
run: go test -mod=vendor -v ./...
23+
24+
go-apidiff:
25+
name: go-apidiff
26+
if: github.event_name == 'pull_request'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Set up Go
30+
uses: actions/setup-go@v2
31+
with:
32+
go-version: 1.15
33+
id: go
34+
- name: Check out code into the Go module directory
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
- name: Run go-apidiff
39+
uses: joelanford/go-apidiff@master

0 commit comments

Comments
 (0)