|
12 | 12 | jobs:
|
13 | 13 | test-rn:
|
14 | 14 | runs-on: ubuntu-latest
|
15 |
| - |
16 | 15 | steps:
|
17 | 16 | - uses: actions/checkout@v1
|
18 | 17 |
|
|
25 | 24 | run: |
|
26 | 25 | npm ci
|
27 | 26 | npm test
|
| 27 | +
|
28 | 28 | - name: Assert that every file that should be public has been exported
|
29 | 29 | run: ./scripts/assert_export.sh
|
30 | 30 |
|
@@ -60,52 +60,45 @@ jobs:
|
60 | 60 | test-android:
|
61 | 61 | needs: test-rn
|
62 | 62 | runs-on: macOS-13
|
| 63 | + env: |
| 64 | + GRADLE_VERSION: 7.6 |
| 65 | + |
63 | 66 | steps:
|
64 |
| - - name: No-op |
65 |
| - run: echo "Skipping Android tests. Job completed successfully." |
66 |
| - |
67 |
| -# test-android: |
68 |
| -# needs: test-rn |
69 |
| -# runs-on: macOS-13 |
70 |
| -# env: |
71 |
| -# GRADLE_VERSION: 7.6 |
72 |
| -# |
73 |
| -# steps: |
74 |
| -# - name: Checkout |
75 |
| -# uses: actions/checkout@v2 |
76 |
| -# |
77 |
| -# - name: Setup Node |
78 |
| -# uses: actions/setup-node@v2 |
79 |
| -# with: |
80 |
| -# node-version: ${{ env.NODE_JS_VERSION }} |
81 |
| -# |
82 |
| -# - name: Java 11 |
83 |
| -# uses: actions/setup-java@v1 |
84 |
| -# with: |
85 |
| -# java-version: 11 |
86 |
| -# |
87 |
| -# - name: Install Dependencies npm |
88 |
| -# working-directory: ./example |
89 |
| -# run: npm install |
90 |
| -# |
91 |
| -# - name: Cache Gradle |
92 |
| -# id: cache-gradle |
93 |
| -# uses: actions/cache@v2 |
94 |
| -# with: |
95 |
| -# path: | |
96 |
| -# ./example/android/ci-cache/gradle |
97 |
| -# ./example/android/gradle/wrapper/gradle-wrapper.jar |
98 |
| -# ./example/android/gradlew |
99 |
| -# key: ${{ runner.os }}-cache-gradle-${{ env.GRADLE_VERSION }} |
100 |
| -# |
101 |
| -# - name: Setup Gradle |
102 |
| -# if: steps.cache-gradle.outputs.cache-hit != 'true' |
103 |
| -# working-directory: ./example/android |
104 |
| -# run: ../../scripts/setup_gradle.sh ${{ env.GRADLE_VERSION }} |
105 |
| -# |
106 |
| -# - name: Android tests |
107 |
| -# uses: reactivecircus/android-emulator-runner@v2 |
108 |
| -# with: |
109 |
| -# working-directory: ./example/android |
110 |
| -# api-level: 29 |
111 |
| -# script: gradle wrapper; ./gradlew :react-native-usercentrics:connectedAndroidTest |
| 67 | + - name: Checkout |
| 68 | + uses: actions/checkout@v4 |
| 69 | + |
| 70 | + - name: Setup Node |
| 71 | + uses: actions/setup-node@v2 |
| 72 | + with: |
| 73 | + node-version: ${{ env.NODE_JS_VERSION }} |
| 74 | + |
| 75 | + - name: Java 17 |
| 76 | + uses: actions/setup-java@v1 |
| 77 | + with: |
| 78 | + java-version: 17 |
| 79 | + |
| 80 | + - name: Install Dependencies npm |
| 81 | + working-directory: ./example |
| 82 | + run: npm install |
| 83 | + |
| 84 | + - name: Cache Gradle |
| 85 | + id: cache-gradle |
| 86 | + uses: actions/cache@v4 |
| 87 | + with: |
| 88 | + path: | |
| 89 | + ./example/android/ci-cache/gradle |
| 90 | + ./example/android/gradle/wrapper/gradle-wrapper.jar |
| 91 | + ./example/android/gradlew |
| 92 | + key: ${{ runner.os }}-cache-gradle-${{ env.GRADLE_VERSION }} |
| 93 | + |
| 94 | + - name: Setup Gradle |
| 95 | + if: steps.cache-gradle.outputs.cache-hit != 'true' |
| 96 | + working-directory: ./example/android |
| 97 | + run: ../../scripts/setup_gradle.sh ${{ env.GRADLE_VERSION }} |
| 98 | + |
| 99 | + - name: Android tests |
| 100 | + uses: reactivecircus/android-emulator-runner@v2 |
| 101 | + with: |
| 102 | + working-directory: ./example/android |
| 103 | + api-level: 29 |
| 104 | + script: gradle wrapper; ./gradlew :react-native-usercentrics:connectedAndroidTest |
0 commit comments