-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (33 loc) · 909 Bytes
/
workflow.yml
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
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"