Skip to content

chore(ci): add apidiff check for API compatibility #2

chore(ci): add apidiff check for API compatibility

chore(ci): add apidiff check for API compatibility #2

Workflow file for this run

---
name: apidiff
on:
pull_request:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
- 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 -m -incompatible uuid.baseline . > diff.txt
cat diff.txt && ! [ -s diff.txt ]