Skip to content

Commit

Permalink
Update and rename apiBreakTest.yml to api-breaking-changes-detection.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rozaychen authored Jul 15, 2024
1 parent 0659b85 commit a640f08
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@ permissions:
pull-requests: write

jobs:
buildAndCheckAPIBreakage:
build-and-check-api-breakage:
name: Build and Check API Breakage
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
fetch-depth: 0
ref: ${{ github.head_ref }} # Checkout the PR branch
fetch-depth: 1

- name: Fetch the branchs
run: |
git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1
git fetch origin ${{ github.sha }}
- name: Setup and Run Swift API Diff
Expand Down Expand Up @@ -66,6 +72,7 @@ jobs:
SDK_PATH=$(xcrun --show-sdk-path)
# Get all library module names
# Moduels with aws-crt-swift as dependency are not listed due to swift-api-digester's issue with analyzing C dependencies
modules=$(swift package dump-package | jq -r '.products | map(select(.name == "Amplify" or .name == "CoreMLPredictionsPlugin" or .name == "AWSDataStorePlugin" or .name == "AWSPluginsCore")) | map(.name) | .[]')
echo "Modules: $modules"
Expand Down Expand Up @@ -194,7 +201,7 @@ jobs:
git stash pop || true
- name: Comment on PR with API Diff
uses: actions/github-script@v6
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down

0 comments on commit a640f08

Please sign in to comment.