4
4
pull_request :
5
5
paths :
6
6
- ' ufc/**'
7
-
8
-
9
7
workflow_dispatch :
10
8
11
9
jobs :
@@ -17,60 +15,11 @@ jobs:
17
15
sdk_branch : main
18
16
19
17
test-android-sdk :
20
- runs-on : macos-latest
21
- steps :
22
- - name : Check out Java SDK
23
- uses : actions/checkout@v3
24
- with :
25
- repository : ' Eppo-exp/android-sdk'
26
- - name : Set up JDK 11
27
- uses : actions/setup-java@v3
28
- with :
29
- java-version : ' 11'
30
- distribution : ' adopt'
31
- - name : ' Set up GCP SDK'
32
- uses : ' google-github-actions/setup-gcloud@v0'
33
- - name : Restore gradle.properties
34
- env :
35
- MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
36
- MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
37
- shell : bash
38
- run : |
39
- mkdir -p ~/.gradle/
40
- echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
41
- echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties
42
- echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties
43
- - name : Set up test data
44
- run : make test-data
45
- - name : Spin up emulator and run tests
46
- id : testing
47
- uses : ReactiveCircus/android-emulator-runner@v2
48
- with :
49
- api-level : 33
50
- target : google_apis
51
- arch : x86_64
52
- emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -dns-server 8.8.8.8
53
- script : |
54
- echo "Emulator started"
55
- adb logcat -c # clear logs
56
- mkdir -p app/ # create directory
57
- touch app/emulator.log # create log file
58
- chmod 777 app/emulator.log # allow writing to log file
59
- adb logcat | grep EppoSDK >> app/emulator.log & # pipe all logcat messages into log file as a background process
60
- ./gradlew connectedCheck # run tests
61
- - name : Upload Emulator Logs
62
- if : always()
63
- uses : actions/upload-artifact@v2
64
- with :
65
- name : emulator logs
66
- path : app/emulator.log
67
- - name : Upload Test Report
68
- if : always()
69
- uses : actions/upload-artifact@v2
70
- with :
71
- name : report
72
- path : /Users/runner/work/sdk-test-data/sdk-test-data/eppo/build/reports/androidTests/connected/index.html
73
-
18
+ uses : Eppo-exp/android-sdk/.github/workflows/test.yaml@main
19
+ with :
20
+ test_data_branch : ${{ github.head_ref || github.ref_name }}
21
+ sdk_branch : main
22
+
74
23
test-node-server-sdk :
75
24
uses : Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@main
76
25
with :
@@ -84,18 +33,10 @@ jobs:
84
33
sdk_branch : main
85
34
86
35
test-react-native-sdk :
87
- runs-on : ubuntu-latest
88
- steps :
89
- - name : Checkout React Native SDK
90
- uses : actions/checkout@v3
91
- with :
92
- repository : ' Eppo-exp/react-native-sdk'
93
- - name : Setup
94
- uses : ./.github/actions/setup
95
- - name : Install dependencies
96
- run : yarn install
97
- - name : Run tests
98
- run : yarn test --maxWorkers=2 --coverage
36
+ uses : Eppo-exp/react-native-sdk/.github/workflows/ci.yml@main
37
+ with :
38
+ test_data_branch : ${{ github.head_ref || github.ref_name }}
39
+ sdk_branch : main
99
40
100
41
test-python-sdk :
101
42
runs-on : ubuntu-latest
@@ -112,58 +53,17 @@ jobs:
112
53
test_data_branch : ${{ github.head_ref || github.ref_name }}
113
54
sdk_branch : main
114
55
115
- test-ruby-sdk :
116
- runs-on : ubuntu-latest
117
- steps :
118
- - name : Check out Ruby SDK
119
- uses : actions/checkout@v3
120
- with :
121
- repository : ' Eppo-exp/ruby-sdk'
122
- - name : Set up Ruby 3
123
- uses : ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
124
- with :
125
- ruby-version : 3.0.6
126
- - name : Install dependencies
127
- run : bundle install
128
- - name : Refresh test data
129
- run : bundle exec rake test_refreshed_data
130
- - name : Run tests
131
- run : bundle exec rake test
132
-
133
56
test-ios-sdk :
134
- runs-on : macos-latest
135
- steps :
136
- - name : Checkout iOS SDK
137
- uses : actions/checkout@v3
138
- with :
139
- repository : ' Eppo-exp/eppo-ios-sdk'
140
- - name : ' Set up Cloud SDK'
141
- uses : ' google-github-actions/setup-gcloud@v1'
142
- - name : ' Use gcloud CLI'
143
- run : ' gcloud info'
144
- - name : Build
145
- run : make build
146
- - name : Pull test data
147
- run : make test-data
148
- - name : Run tests
149
- run : make test
150
-
57
+ uses : Eppo-exp/eppo-ios-sdk/.github/workflows/unit-tests.yml@main
58
+ with :
59
+ test_data_branch : ${{ github.head_ref || github.ref_name }}
60
+ sdk_branch : main
61
+
151
62
test-golang-sdk :
152
- runs-on : ubuntu-latest
153
- steps :
154
- - name : Checkout Go SDK
155
- uses : actions/checkout@v3
156
- with :
157
- repository : ' Eppo-exp/golang-sdk'
158
- - uses : actions/setup-go@v3
159
- with :
160
- go-version : 1.19
161
- - name : Build
162
- run : go build -v ./...
163
- - name : ' Set up GCP SDK for downloading test data'
164
- uses : ' google-github-actions/setup-gcloud@v0'
165
- - name : Run tests
166
- run : make test
63
+ uses : Eppo-exp/golang-sdk/.github/workflows/test.yml@main
64
+ with :
65
+ test_data_branch : ${{ github.head_ref || github.ref_name }}
66
+ sdk_branch : main
167
67
168
68
test-dotnet-sdk :
169
69
uses : Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@main
0 commit comments