Skip to content

Feat/test api diff

Feat/test api diff #11

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/cmd/apidiff@latest
./script/apidiff.sh