Skip to content

Commit 6de9590

Browse files
committed
feat(ci): apidiff-go for root module
1 parent 64e0a79 commit 6de9590

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/api-diff.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Analyze API Changes
2+
description: Runs apidiff-go action to check for breaking changes to modules' public APIs
3+
4+
on:
5+
pull_request:
6+
7+
jobs:
8+
root-module:
9+
name: Root Module
10+
permissions:
11+
pull-requests: write
12+
contents: read
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout the repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: "go.mod"
24+
cache: false
25+
26+
- uses: smartcontractkit/.github/actions/apidiff-go@apidiff-go/0.1.0
27+
env:
28+
GITHUB_TOKEN: ${{ github.token }}
29+
with:
30+
go-mod-paths: "./"
31+
enforce-compatible: "false" # dont fail on breaking changes

0 commit comments

Comments
 (0)