-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (29 loc) · 946 Bytes
/
Copy pathpull-request.yml
File metadata and controls
36 lines (29 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Pull Request
on:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Validate commits and run tests
if: github.event.pull_request.draft == false
runs-on: macos-26
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Detect breaking changes
id: detect_breaking_changes
continue-on-error: true
run: swift package diagnose-api-breaking-changes "origin/${{ github.base_ref }}"
- name: Validate pull request title
uses: Oliver-Binns/Versioning@1.4.7-beta.2
with:
ACTION_TYPE: 'Validate'
CONTAINS_BREAKING_CHANGE: ${{ steps.detect_breaking_changes.outcome != 'success' }}
- name: Run Tests
run: swift test