Build the initial React Native project in e2e tests (#13642)

This commit is contained in:
Nicolò Ribaudo 2021-08-10 21:40:10 +02:00 committed by GitHub
parent 9286cdb072
commit 9188e9575c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 1 deletions

View File

@ -423,7 +423,13 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
project: [babel, babel-old-version, create-react-app, vue-cli, jest] project:
- babel
- babel-old-version
- create-react-app
- vue-cli
- jest
- react-native
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2

View File

@ -0,0 +1,39 @@
#!/bin/bash
#==============================================================================#
# SETUP #
#==============================================================================#
# Start in scripts/integration-tests/ even if run from root directory
cd "$(dirname "$0")" || exit
root="$PWD"
source utils/local-registry.sh
source utils/cleanup.sh
# Echo every command being executed
set -x
#==============================================================================#
# ENVIRONMENT #
#==============================================================================#
node -v
npm --version
yarn --version
#==============================================================================#
# TEST #
#==============================================================================#
startLocalRegistry "$root"/verdaccio-config.yml
# Create a React Native project
cd /tmp
npx react-native init rnbabel
cd rnbabel
# Build the project
npx react-native bundle --entry-file index.js --bundle-output output.js
cleanup