File tree Expand file tree Collapse file tree 2 files changed +34
-8
lines changed Expand file tree Collapse file tree 2 files changed +34
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Swift
2
2
3
- on : [push]
3
+ env :
4
+ SDK_BRANCH_NAME : ${{ inputs.sdk_branch || github.head_ref || github.ref_name }}
5
+ TEST_DATA_BRANCH_NAME : ${{ inputs.test_data_branch || 'main' }}
6
+
7
+ on :
8
+ push :
9
+ branches : [main]
10
+
11
+ pull_request :
12
+
13
+ workflow_dispatch :
14
+
15
+ workflow_call :
16
+ inputs :
17
+ test_data_branch :
18
+ type : string
19
+ description : The branch in sdk-test-data to target for testcase files
20
+ required : false
21
+ default : main
22
+ sdk_branch :
23
+ type : string
24
+ description : The branch of the SDK to test
25
+ required : false
4
26
5
27
jobs :
6
28
build :
7
29
runs-on : macos-latest
8
30
steps :
9
- - uses : actions/checkout@v3
10
- - name : ' Set up Cloud SDK'
11
- uses : ' google-github-actions/setup-gcloud@v1'
31
+ - name : Display Testing Details
32
+ run : |
33
+ echo "Running SDK Test using"
34
+ echo "Test Data: sdk-test-data@${TEST_DATA_BRANCH_NAME}"
35
+ echo "SDK Branch: eppo-ios-sdk@${SDK_BRANCH_NAME}"
12
36
13
- - name : ' Use gcloud CLI'
14
- run : ' gcloud info'
37
+ - uses : actions/checkout@v3
38
+ with :
39
+ repository : Eppo-exp/eppo-ios-sdk
40
+ ref : ${{ env.SDK_BRANCH_NAME}}
15
41
16
42
- name : Build
17
43
run : make build
18
44
19
45
- name : Pull test data
20
- run : make test-data
46
+ run : make test-data branchName=${{env.TEST_DATA_BRANCH_NAME}}
21
47
22
48
- name : Run tests
23
49
run : make test
Original file line number Diff line number Diff line change 29
29
swift build
30
30
31
31
.PHONY : test
32
- test :
32
+ test :
33
33
swift test
34
34
35
35
# # test-data
You can’t perform that action at this time.
0 commit comments