From a926287d9b6137fe537962dc439e3bf82a99bca2 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Thu, 4 Jul 2024 07:31:51 +0100 Subject: [PATCH] [GHA] Add API breaking check # 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. --- .github/workflows/pull_requests.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 89fda3a67b..a2778a45b4 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: @@ -23,9 +23,20 @@ jobs: - image: swiftlang/swift:nightly-main-jammy container: image: ${{ matrix.swift.image }} + timeout-minutes: 20 steps: - name: Checkout repository uses: actions/checkout@v4 - name: Run tests run: swift test - timeout-minutes: 20 \ No newline at end of file + + api-breakage: + runs-on: ubuntu-latest + container: + image: 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