Skip to content

Commit

Permalink
Test multiple Xcode versions in CI (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
calda authored May 5, 2023
1 parent d740d42 commit 6900f5a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Setup
description: Setup the airbnb/swift CI Environment
inputs:
xcode:
description: The version of Xcode to select
runs:
using: composite
steps:
- name: Select Xcode ${{ inputs.xcode }}
run: sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode }}.app
if: ${{ inputs.xcode }}
shell: bash
21 changes: 20 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,28 @@ on:
branches: [ master ]

jobs:
test-package-plugin:
test-package-plugin-macos-12:
name: Test Package Plugin
runs-on: macos-12
strategy:
fail-fast: false
matrix:
xcode:
- '13.4.1' # Swift 5.6
steps:
- uses: actions/checkout@v2
- name: Test Package Plugin
run: swift package --allow-writing-to-package-directory format --lint

test-package-plugin-macos-13:
name: Test Package Plugin
runs-on: macos-13
strategy:
fail-fast: false
matrix:
xcode:
- '14.2' # Swift 5.7
- '14.3' # Swift 5.8
steps:
- uses: actions/checkout@v2
- name: Test Package Plugin
Expand Down

0 comments on commit 6900f5a

Please sign in to comment.