-
Notifications
You must be signed in to change notification settings - Fork 1.5k
88 lines (83 loc) · 2.17 KB
/
database.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Database
on:
push:
branches: [ main ]
paths:
- '.github/workflows/database.yml'
- 'database/**'
- 'scripts/*'
- 'scripts/database.sh'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/database.yml'
- 'database/**'
- 'scripts/*'
- 'scripts/database.sh'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
SAMPLE: Database
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
jobs:
cocoapods:
name: cocoapods
runs-on: macOS-14
env:
SPM: false
LEGACY: false
OS: iOS
DEVICE: iPhone 14
TEST: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd database
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/database.sh
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift
spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-14
strategy:
matrix:
xcode: ["15.3"]
os: [iOS, tvOS, macOS]
include:
- os: iOS
device: iPhone 14
test: false
- os: tvOS
device: Apple TV 4K (3rd generation) (at 1080p)
test: true
- os: macOS
device: localhost
test: false # flaky macOS UITest: UITests.testStaticSignUpView() sometimes fails
env:
SETUP: database
SPM: true
DIR: database/DatabaseExampleSwiftUI/DatabaseExample
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${{ matrix.os }})
run: ./scripts/test.sh