Prepare codebase for Swift 6 #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SwiftUICoordinator | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-latest | |
env: | |
PROJECT: Example/SwiftUICoordinatorExample/SwiftUICoordinatorExample.xcodeproj | |
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer | |
SCHEME: SwiftUICoordinator | |
DESTINATION: platform=iOS Simulator,name=iPhone 14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Select Xcode | |
run: sudo xcode-select --switch $DEVELOPER_DIR | |
- name: Clear Derived Data | |
run: | | |
rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
- name: Install SwiftLint | |
run: | | |
brew install swiftlint | |
- name: Run SwiftLint | |
run: swiftlint | |
- name: Build and test | |
run: | | |
swift package update | |
xcodebuild clean test -scheme $SCHEME -destination "$DESTINATION" |