Skip to content

Commit 6900f5a

Browse files
authored
Test multiple Xcode versions in CI (#224)
1 parent d740d42 commit 6900f5a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Setup
2+
description: Setup the airbnb/swift CI Environment
3+
inputs:
4+
xcode:
5+
description: The version of Xcode to select
6+
runs:
7+
using: composite
8+
steps:
9+
- name: Select Xcode ${{ inputs.xcode }}
10+
run: sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode }}.app
11+
if: ${{ inputs.xcode }}
12+
shell: bash

.github/workflows/main.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,28 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test-package-plugin:
10+
test-package-plugin-macos-12:
1111
name: Test Package Plugin
1212
runs-on: macos-12
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
xcode:
17+
- '13.4.1' # Swift 5.6
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Test Package Plugin
21+
run: swift package --allow-writing-to-package-directory format --lint
22+
23+
test-package-plugin-macos-13:
24+
name: Test Package Plugin
25+
runs-on: macos-13
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
xcode:
30+
- '14.2' # Swift 5.7
31+
- '14.3' # Swift 5.8
1332
steps:
1433
- uses: actions/checkout@v2
1534
- name: Test Package Plugin

0 commit comments

Comments
 (0)