Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: React Native E2E Tests (iOS)
name: React Native E2E Tests

on:
pull_request:
Expand All @@ -13,15 +13,15 @@ concurrency:
cancel-in-progress: true

jobs:
test:
prepare:
name: Prepare workflow
runs-on: macos-latest
strategy:
matrix:
xcode: [12.2]
native-test-name: [gutenberg-editor-initial-html]

steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- name: checkout
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
path: gutenberg

- name: Use Node.js 14.x
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
Expand All @@ -34,7 +34,70 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}

- run: npm ci
- name: Install NPM packages
run: npm ci
working-directory: gutenberg

- name: Cache build
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
with:
path: gutenberg
key: ${{ github.workflow }}-${{ github.sha }}

android:
name: Android
runs-on: macos-latest
needs: prepare
strategy:
matrix:
native-test-name: [gutenberg-editor-initial-html]

steps:
- name: Cache build
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
with:
path: ./
key: ${{ github.workflow }}-${{ github.sha }}

- name: Restore Gradle cache
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}

- uses: reactivecircus/android-emulator-runner@d2799957d660add41c61a5103e2fbb9e2889eb73 # v2.15.0
with:
api-level: 28
profile: pixel_xl
script: npm run native test:e2e:android:local ${{ matrix.native-test-name }}

- uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571 # v2.2.2
if: always()
with:
name: android-screen-recordings
path: packages/react-native-editor/android-screen-recordings

- uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571 # v2.2.2
if: always()
with:
name: appium-logs
path: packages/react-native-editor/appium-out.log

ios:
name: iOS
runs-on: macos-latest
needs: prepare
strategy:
matrix:
xcode: [12.2]
native-test-name: [gutenberg-editor-initial-html]

steps:
- name: Cache build
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
with:
path: ./
key: ${{ github.workflow }}-${{ github.sha }}

- name: Prepare build cache key
run: find package-lock.json packages/react-native-editor/ios packages/react-native-aztec/ios packages/react-native-bridge/ios -type f -print0 | sort -z | xargs -0 shasum | tee ios-checksums.txt
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/rnmobile-android-runner.yml

This file was deleted.