-
-
Notifications
You must be signed in to change notification settings - Fork 148
47 lines (36 loc) · 1.03 KB
/
unit-tests.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
37
38
39
40
41
42
43
44
45
46
47
name: Unit Tests
on:
workflow_dispatch:
pull_request:
branches:
- dev
push:
branches:
- main
- dev
# Limit only the latest workflow created to run
concurrency:
group: build
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare xcconfig
run: cp Basic-Car-Maintenance.xcconfig.template Basic-Car-Maintenance.xcconfig
- name: Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install packages
run: xcodebuild -resolvePackageDependencies
- name: Enable Build Tools
run: cp fastlane/enable-build-tool-plugins.json ~/Library/org.swift.swiftpm/security/plugins.json
- name: Install dependencies
run: bundle install
- name: Install build log formatter
run: brew install xcbeautify
- name: Run Unit Tests
run: FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT=60 bundle exec fastlane unit_tests