-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (59 loc) · 1.5 KB
/
Copy pathswift-tests.yml
File metadata and controls
59 lines (59 loc) · 1.5 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Swift Tests
on:
push:
branches:
- 'master'
paths-ignore:
- 'BlueConnect.podspec'
- 'Banner.png'
- 'README.md'
- 'CHANGELOG.md'
- 'LICENSE'
- 'swift-generate-documentation.sh'
- 'docs/**'
- '.periphery.yml'
- '.spy.yml'
- '.swiftlint.yml'
- '.gitignore'
pull_request:
branches:
- '*'
types: [opened, reopened]
workflow_dispatch:
jobs:
tests:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-14
swift: "5.9"
- os: macos-14
swift: "5.10"
- os: macos-15
swift: "6.0"
- os: macos-15
swift: "6.1"
runs-on: ${{ matrix.os }}
steps:
- name: Setup swift version ${{ matrix.swift }}
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- name: Check swift version
run: swift --version
- name: Repository checkout
uses: actions/checkout@v4
- name: Build
run: swift build
- name: Select latest Xcode
run: |
LATEST_XCODE=$(ls /Applications | grep '^Xcode_' | sort -V | tail -n1)
echo "Using $LATEST_XCODE"
sudo xcode-select -s "/Applications/$LATEST_XCODE"
- name: Run tests with xcodebuild
run: |
xcodebuild test \
-scheme BlueConnect \
-sdk macosx \
-destination 'platform=macOS'