-
Notifications
You must be signed in to change notification settings - Fork 68
52 lines (43 loc) · 1.41 KB
/
Copy pathpr-tests.yml
File metadata and controls
52 lines (43 loc) · 1.41 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
name: PR Tests
on:
pull_request:
branches:
- main
- feature/*
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: macos-26
env:
UPLOAD_XCRESULT_FILE: NO # Set to YES to upload the XCResult file for debugging.
DEBUG: NO # Set to YES to show raw xcode logs and disable parallel testing. Will also be enabled when ACTIONS_STEP_DEBUG == true, happening in GitHub Action Relaunches.
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1 # Only fetch the latest commit
submodules: false # Only set to true if you need submodules
- uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Set up Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Show Xcode and Swift version
run: |
xcodebuild -version
swift --version
- name: Run Diagnostics Tests
run: bundle exec fastlane test_diagnostics