|
1 | 1 | name: 'end to end test' |
2 | 2 | on: |
3 | 3 | push: |
| 4 | + workflow_dispatch: |
4 | 5 |
|
5 | 6 | env: |
6 | 7 | DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }} |
7 | 8 |
|
8 | 9 | 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 | + |
9 | 34 | examples-test: |
| 35 | + needs: code-test |
10 | 36 | strategy: |
11 | 37 | matrix: |
12 | 38 | os: [ubuntu-latest, macos-latest, windows-latest] |
@@ -287,6 +313,7 @@ jobs: |
287 | 313 | run: rm -rf examples/with-javascript-browser |
288 | 314 |
|
289 | 315 | rn-ios-test: |
| 316 | + needs: code-test |
290 | 317 | strategy: |
291 | 318 | matrix: |
292 | 319 | 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: |
344 | 371 | path: examples/with-typescript-react-native/artifacts |
345 | 372 |
|
346 | 373 | rn-android-test: |
| 374 | + needs: code-test |
347 | 375 | strategy: |
348 | 376 | matrix: |
349 | 377 | api-level: [25, 26, 29, 31, 35] #app fail: android 5; driver fail: android 6 and android 7 |
@@ -410,6 +438,7 @@ jobs: |
410 | 438 | path: examples/with-typescript-react-native/artifacts |
411 | 439 |
|
412 | 440 | expo-ios-test: |
| 441 | + needs: code-test |
413 | 442 | strategy: |
414 | 443 | matrix: |
415 | 444 | 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: |
467 | 496 | path: examples/with-javascript-expo/artifacts |
468 | 497 |
|
469 | 498 | expo-android-test: |
| 499 | + needs: code-test |
470 | 500 | strategy: |
471 | 501 | matrix: |
472 | 502 | api-level: [25, 26, 29, 31, 35] #app fail: android 5; driver fail: android 6 and android 7 |
|
0 commit comments