-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (60 loc) · 1.7 KB
/
pull-request.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
---
name: Pull Request
on: # yamllint disable-line rule:truthy
merge_group:
pull_request:
jobs:
check-quality:
name: 🔎 Check quality
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run the quality check
run: make check-quality
build-documentation:
name: 📚 Build documentation
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build the documentation
run: make doc
tests:
name: 🧪 Tests
runs-on: macos-latest
strategy:
matrix:
platform: [ios, tvos]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: make test-${{ matrix.platform }}
archive-demos:
name: 📦 Archives
runs-on: macos-latest
strategy:
matrix:
platform: [ios, tvos]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Add Apple certificate
run: |
Scripts/add-apple-certificate.sh \
$RUNNER_TEMP \
${{ secrets.KEYCHAIN_PASSWORD }} \
${{ secrets.APPLE_DEV_CERTIFICATE }} \
${{ secrets.APPLE_DEV_CERTIFICATE_PASSWORD }}
- name: Configure environment
run: |
Scripts/configure-environment.sh \
${{ secrets.APP_STORE_CONNECT_API_KEY }}
- name: Archive the demo
run: make archive-demo-${{ matrix.platform }}
env:
TEAM_ID: ${{ secrets.TEAM_ID }}
KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }}
TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }}