1
0
mirror of https://github.com/google/uuid.git synced 2024-11-24 08:32:23 +02:00

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

This commit is contained in:
Noah Dietz 2023-08-18 10:05:16 -07:00 committed by GitHub
parent 53f93a84e6
commit 97c970d2a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
.github/workflows/apidiff.yaml vendored Normal file
View File

@ -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 ]