Skip to content

Commit 4bd1937

Browse files
authored
Update Swift workflow to include Xcode setup and tests
1 parent d437a44 commit 4bd1937

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/swift.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Build
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: macos-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: List available Xcode versions
20+
run: ls /Applications | grep Xcode
21+
- name: Show current version of Xcode
22+
run: xcodebuild -version
23+
- name: Set up Xcode version
24+
run: sudo xcode-select -s /Applications/Xcode_26.2.0.app/Contents/Developer
25+
- name: Show current version of Xcode
26+
run: xcodebuild -version
27+
- name: Install Bundle
28+
run: bundle install
29+
- name: Run unit tests
30+
run: bundle exec fastlane run_unit_tests --verbose

0 commit comments

Comments
 (0)