[GHA] Add API breaking check #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | ||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
## We are cancelling previously triggered workflow runs | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
swift: | ||
- image: swift:5.8-jammy | ||
- image: swift:5.9-jammy | ||
- image: swift:5.10-noble | ||
- image: swiftlang/swift:nightly-6.0-jammy | ||
- image: swiftlang/swift:nightly-main-jammy | ||
container: | ||
image: ${{ matrix.swift.image }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Run tests | ||
run: swift test | ||
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 |