Skip to content

feat(ci): apidiff on pull requests #8

feat(ci): apidiff on pull requests

feat(ci): apidiff on pull requests #8

Workflow file for this run

name: Analyze API Changes
on:
pull_request:
jobs:
analyze:
permissions:
pull-requests: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version-file: "go.mod"
only-modules: "true"
- uses: joelanford/go-apidiff@60c4206be8f84348ebda2a3e0c3ac9cb54b8f685 # v0.8.3
with:
version: "v0.8.3"
analyze-apidiff:
permissions:
pull-requests: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version-file: "go.mod"
only-modules: "true"
- name: Run script/apidiff.sh
run: |
go install golang.org/x/exp/apidiff@latest
./script/apidiff.sh