-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.15 KB
/
ci.yml
File metadata and controls
44 lines (40 loc) · 1.15 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
name: "flex-ui"
on:
push:
branches:
- main
pull_request:
paths:
- '.swiftlint.yml'
- ".github/workflows/**"
- "Package.swift"
- "Source/**"
- "Tests/**"
permissions:
contents: read
concurrency:
group: flex-ui-${{ github.head_ref }}
cancel-in-progress: true
jobs:
iOS:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
# iOS
- { platform: iOS, name: "iOS 18.1", xcode: "Xcode_16.1", runsOn: macOS-14, destination: "OS=18.1,name=iPhone 16 Pro" }
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Run tests - ${{ matrix.name }}
run: xcodebuild test -scheme "flex-ui" -destination "${{ matrix.destination }}" -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" clean || exit 1
- name: Upload test results
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.name }}
path: test_output