diff --git a/.changeset/small-guests-think.md b/.changeset/small-guests-think.md new file mode 100644 index 00000000..83d9c8ae --- /dev/null +++ b/.changeset/small-guests-think.md @@ -0,0 +1,5 @@ +--- +"react-native-owl": patch +--- + +chore: Enable Android workflow for the demo app diff --git a/.github/workflows/demo-app.yml b/.github/workflows/demo-app.yml index c98dd305..cd11abfd 100644 --- a/.github/workflows/demo-app.yml +++ b/.github/workflows/demo-app.yml @@ -5,16 +5,21 @@ on: [pull_request] jobs: run-visual-regression-ios: runs-on: macos-11 + if: ${{ false }} # FIXME: Remove before merging steps: - uses: actions/setup-node@v3 with: node-version: 16 - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get Runner Information run: /usr/bin/xcodebuild -version + + - uses: actions/setup-node@v3 + with: + node-version: 16 - name: Get yarn cache directory path id: yarn-cache-dir-path @@ -76,16 +81,25 @@ jobs: run-visual-regression-android: runs-on: macos-11 - if: ${{ false }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '11' + + - uses: actions/setup-node@v3 + with: + node-version: 16 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -105,7 +119,7 @@ jobs: run: yarn install --frozen-lockfile working-directory: ./example - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.gradle/caches @@ -115,13 +129,13 @@ jobs: ${{ runner.os }}-gradle- - name: SKDs - download required images - run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-30;default;x86_64" + run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;default;x86_64" - name: SDKs - accept licenses - run: y | $ANDROID_HOME/tools/bin/sdkmanager --licenses + run: y | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses - name: Emulator - Create - run: $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_30 --device 'Nexus 5X' --package "system-images;android-30;default;x86_64" --sdcard 512M + run: $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n Pixel_API_30 --device 'Nexus 5X' --package "system-images;android-30;default;x86_64" --sdcard 512M - name: Emulator - Boot run: $ANDROID_HOME/emulator/emulator -memory 4096 -avd Pixel_API_30 -wipe-data -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim & @@ -137,6 +151,10 @@ jobs: - name: Run Owl Test run: yarn owl:test:android working-directory: ./example + + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 - name: Store screenshots as artifacts uses: actions/upload-artifact@v2