diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 89fda3a67b..13cf425727 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -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: @@ -28,4 +28,14 @@ jobs: uses: actions/checkout@v4 - name: Run tests run: swift test - timeout-minutes: 20 \ No newline at end of file + 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: swift package diagnose-api-breaking-changes origin/main \ No newline at end of file