Skip to content

Commit 271727a

Browse files
committed
end to end test depend on code test
1 parent 80c42bc commit 271727a

File tree

2 files changed

+30
-29
lines changed

2 files changed

+30
-29
lines changed

.github/workflows/examples-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,38 @@
11
name: 'end to end test'
22
on:
33
push:
4+
workflow_dispatch:
45

56
env:
67
DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
78

89
jobs:
10+
code-test:
11+
name: 'Code Test'
12+
timeout-minutes: 20
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: latest
19+
- name: Setup Dependencies
20+
run: |
21+
corepack enable
22+
npm install
23+
- name: Jest Tests
24+
env:
25+
CHINOOK_DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
26+
CHINOOK_API_KEY: ${{ secrets.CHINOOK_API_KEY }}
27+
GATEWAY_URL: ${{ secrets.GATEWAY_URL }}
28+
run: npm test
29+
- name: Upload Code Coverage
30+
uses: codecov/codecov-action@v4
31+
env:
32+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
33+
934
examples-test:
35+
needs: code-test
1036
strategy:
1137
matrix:
1238
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -287,6 +313,7 @@ jobs:
287313
run: rm -rf examples/with-javascript-browser
288314

289315
rn-ios-test:
316+
needs: code-test
290317
strategy:
291318
matrix:
292319
os: [macos-13, macos-14, macos-15] # macos-12 for ios 15 it's going to be deprecated, it's also using an old version of xcode that is not compatible with react native
@@ -344,6 +371,7 @@ jobs:
344371
path: examples/with-typescript-react-native/artifacts
345372

346373
rn-android-test:
374+
needs: code-test
347375
strategy:
348376
matrix:
349377
api-level: [25, 26, 29, 31, 35] #app fail: android 5; driver fail: android 6 and android 7
@@ -410,6 +438,7 @@ jobs:
410438
path: examples/with-typescript-react-native/artifacts
411439

412440
expo-ios-test:
441+
needs: code-test
413442
strategy:
414443
matrix:
415444
os: [macos-13, macos-14, macos-15] # macos-12 for ios 15 it's going to be deprecated, it's also using an old version of xcode that is not compatible with react native
@@ -467,6 +496,7 @@ jobs:
467496
path: examples/with-javascript-expo/artifacts
468497

469498
expo-android-test:
499+
needs: code-test
470500
strategy:
471501
matrix:
472502
api-level: [25, 26, 29, 31, 35] #app fail: android 5; driver fail: android 6 and android 7

.github/workflows/test.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)