Skip to content

Commit

Permalink
chore(ci): add apidiff check for API compatibility (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz committed Aug 18, 2023
1 parent 53f93a8 commit 97c970d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/apidiff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: apidiff
on:
pull_request:
branches:
- master
jobs:
compat:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21
- run: go install golang.org/x/exp/cmd/apidiff@latest
- uses: actions/checkout@v3
with:
ref: master
- run: apidiff -w uuid.baseline .
- uses: actions/checkout@v3
with:
clean: false
- run: |
apidiff -incompatible uuid.baseline . > diff.txt
cat diff.txt && ! [ -s diff.txt ]

0 comments on commit 97c970d

Please sign in to comment.