Skip to content

Commit

Permalink
[GHA] Add API breaking check
Browse files Browse the repository at this point in the history
# Motivation

The next GH action pipeline that we need is to add our API breaking change checker.

# Modification

This PR adds an API breaking change job to our pull request workflow.
  • Loading branch information
FranzBusch committed Jul 4, 2024
1 parent 304a238 commit 2146034
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

## We are cancelling previously triggered workflow runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -28,4 +28,16 @@ jobs:
uses: actions/checkout@v4
- name: Run tests
run: swift test
timeout-minutes: 20
timeout-minutes: 20

api-breakage:
runs-on: ubuntu-latest
container: swift:5.10-noble
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run API breakage check
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
swift package ${PACKAGE_ROOT} diagnose-api-breaking-changes origin/main ${EXTRA_FLAGS}

0 comments on commit 2146034

Please sign in to comment.