diff --git a/.github/workflows/api-diff.yml b/.github/workflows/api-diff.yml new file mode 100644 index 000000000..e6826bf1d --- /dev/null +++ b/.github/workflows/api-diff.yml @@ -0,0 +1,32 @@ +name: Analyze API Changes + +on: + pull_request: {} + +permissions: {} + +jobs: + root-module: + name: Root Module + permissions: + pull-requests: write + contents: read + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + cache: false + + - uses: smartcontractkit/.github/actions/apidiff-go@apidiff-go/v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + go-mod-paths: "./" + enforce-compatible: "false" # dont fail on breaking changes