File tree Expand file tree Collapse file tree 1 file changed +42
-8
lines changed
Expand file tree Collapse file tree 1 file changed +42
-8
lines changed Original file line number Diff line number Diff line change 11name : Analyze API Changes
22
33on :
4+ push :
5+ branches :
6+ - main
47 pull_request :
58
69jobs :
7- root-module :
8- name : Root Module
10+ changed-modules :
11+ name : Determine Changed Modules
12+ runs-on : ubuntu-latest
913 permissions :
10- pull-requests : write
1114 contents : read
15+ pull-requests : read
16+ outputs :
17+ modules-json : ${{ steps.changed-modules.outputs.modules-json }}
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v5
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Changed modules
25+ id : changed-modules
26+ uses : smartcontractkit/.github/actions/changed-modules-go@changed-modules-go/v1
27+ with :
28+ file-patterns : |
29+ **/*.go
30+ **/go.mod
31+ **/go.sum
32+ module-patterns : |
33+ **
34+
35+ analyze-api-changes :
36+ name : Analyze (${{ matrix.module }})
1237 runs-on : ubuntu-latest
38+ needs : changed-modules
39+ permissions :
40+ pull-requests : write
41+ contents : read
42+ strategy :
43+ fail-fast : false
44+ matrix :
45+ module : ${{ fromJson(needs.changed-modules.outputs.modules-json) }}
1346 steps :
1447 - name : Checkout the repository
15- uses : actions/checkout@v4
48+ uses : actions/checkout@v5
1649 with :
1750 fetch-depth : 0
1851
1952 - name : Set up Go
2053 uses : actions/setup-go@v5
2154 with :
22- go-version-file : " go.mod"
55+ go-version-file : ${{ matrix.module }}/ go.mod
2356 cache : false
2457
25- - uses : smartcontractkit/.github/actions/apidiff-go@apidiff-go/v1
58+ - uses : smartcontractkit/.github/actions/apidiff-go@apidiff-go/v2
2659 env :
2760 GITHUB_TOKEN : ${{ github.token }}
2861 with :
29- go-mod-paths : " ./"
30- enforce-compatible : " false" # dont fail on breaking changes
62+ module-directory : ${{ matrix.module }}
63+ enforce-compatible : false
64+ post-comment : true
You can’t perform that action at this time.
0 commit comments