Skip to content

build(deps): bump github/codeql-action from 2.21.3 to 2.21.4 #224

build(deps): bump github/codeql-action from 2.21.3 to 2.21.4

build(deps): bump github/codeql-action from 2.21.3 to 2.21.4 #224

Workflow file for this run

name: Run apidiff
on: [ pull_request ]
permissions:
contents: read
jobs:
apidiff:
runs-on: ubuntu-latest
if: github.base_ref
steps:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.20.x
- name: Add GOBIN to PATH
run: echo "PATH=$(go env GOPATH)/bin:$PATH" >>$GITHUB_ENV
- name: Install dependencies
run: GO111MODULE=off go get golang.org/x/exp/cmd/apidiff
- name: Checkout old code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
ref: ${{ github.base_ref }}
path: "old"
- name: Checkout new code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
path: "new"
- name: APIDiff
run: ./_tools/apidiff.sh -d ../old
working-directory: "new"