Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smaller GHA Integration Test Matrix #3803

Merged
merged 1 commit into from
Jun 17, 2021
Merged
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
20 changes: 13 additions & 7 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [12, 14]
type: [release, debug]
#TODO: Reactivate debug when builds are optimized
#type: [release, debug]
type: [release]
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -92,7 +94,9 @@ jobs:
strategy:
fail-fast: false
matrix:
type: [Release, Debug]
#TODO: Reactivate debug when builds are optimized
#type: [Release, Debug]
type: [Release]
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -144,7 +148,7 @@ jobs:
- run: npm ci
# Build the iOS xcframework (if cache missed)
- run: ./scripts/build-ios.sh -c ${{ matrix.type }} -s
if: ${{ steps.cache-xcframework.outputs.cache-hit != 'true' }}
if: ${{ steps.cache-xcframework.outputs.cache-hit != 'true' }}
# Bootstrap lerna sub-packages (builds the packages, the Realm JS native module and pod install)
- run: npx lerna bootstrap --scope '{realm-integration-tests,realm-react-native-tests}' --include-dependencies
# Run the tests
Expand All @@ -168,7 +172,9 @@ jobs:
strategy:
fail-fast: false
matrix:
type: [Release, Debug]
#TODO: Reactivate debug when builds are optimized
#type: [Release, Debug]
type: [Release]
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -209,10 +215,10 @@ jobs:
key: android-so-${{ hashFiles('src/**', 'react-native/android/**', 'vendor/**') }}

- run: npm ci
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
# Build the Android shared object file (if cache missed)
- run: ANDROID_NDK=$ANDROID_NDK_HOME node scripts/build-android.js --arch=x86 --build-type=${{ matrix.type }}
if: ${{ steps.cache-android-so.outputs.cache-hit != 'true' }}
if: ${{ steps.cache-android-so.outputs.cache-hit != 'true' }}
# Bootstrap lerna sub-packages (builds the packages, the Realm JS native module and pod install)
- run: npx lerna bootstrap --scope '{realm-integration-tests,realm-react-native-tests}' --include-dependencies
# Run the tests
Expand All @@ -237,4 +243,4 @@ jobs:
MOCHA_REMOTE_REPORTER: mocha-github-actions-reporter
MOCHA_REMOTE_EXIT_ON_ERROR: true
HEADLESS_DEBUGGER: true
SPAWN_LOGCAT: true
SPAWN_LOGCAT: true