-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (57 loc) · 1.72 KB
/
merge_to_develop_on_pr.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
name: PR to [develop]
on:
pull_request:
branches: [ develop ]
#1. load mise
#2. cache tuist
#3. install tuist
#4. checkout tuist project repository
#5. fetch XCConfig from repository
#6. test tuist project
jobs:
test:
runs-on: macos-latest
env:
TUIST_VERSION: 4.12.1
steps:
#1. load mise
- uses: jdx/mise-action@v2
#2. cache tuist
- name: cache tuist
id: cache-tuist
uses: actions/cache@v4
with:
path: /Users/runner/.local/share/mise/shims/tuist
key: ${{ runner.os }}-tuist@${{ env.TUIST_VERSION }}
#3. install tuist
- name: install tuist
if: steps.cache-tuist.outputs.cache-hit != 'true'
run: |
mise install tuist@${{ env.TUIST_VERSION }}
mise use -g tuist@${{ env.TUIST_VERSION }}
- name: install tree
run: brew install tree
- name: check paths
run: |
echo "tuist in installed in $(which tuist)"
echo "tree in installed in $(which tree)"
#4. checkout tuist project repository
- name: checkout project
uses: actions/checkout@v4
#5. fetch XCConfig from repository
- name: fetch Secrets
uses: actions/checkout@v4
with:
repository: ${{ secrets.XCCONFIG_REPO }}
token: ${{ secrets.XCCONFIG_REPO_TOKEN }}
path: '${{ github.workspace }}/project/Secrets'
- name: check secret files
run: |
echo "Checking configurations are loaded..."
tree ${{ github.workspace }}/project/Secrets
#6. test tuist project
- name: Test project
run: |
cd project
tuist install
make test