-
Notifications
You must be signed in to change notification settings - Fork 18
69 lines (45 loc) · 1.11 KB
/
ContinuousIntegration.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
name: CICD on GitHub
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch: # allows manual trigger of the workflow in GitHub console
jobs:
pre-build:
runs-on: self-hosted
steps:
# - name: Clean Git Config
# run: rm /Users/ec2-user/.gitconfig
- name: Checkout
uses: actions/checkout@v4
- name: PrepareKeychain
run: code/ci_actions/01_keychain.sh
- name: PrepareAmplify
run: code/ci_actions/02_amplify.sh
build:
needs: pre-build
runs-on: self-hosted
steps:
- name: Build
run: code/ci_actions/03_build.sh
test:
needs: build
runs-on: self-hosted
steps:
- name: LocalTest
run: code/ci_actions/04_local_tests.sh
- name: DeviceFarmTest
run: code/ci_actions/05_devicefarm_tests.sh
deploy:
needs: test
runs-on: self-hosted
steps:
- name: DeployToTestFlight
run: code/ci_actions/06_deploy_testflight.sh
cleanup:
needs: deploy
runs-on: self-hosted
steps:
- name: cleanup
run: code/ci_actions/07_cleanup.sh