Skip to content

Commit

Permalink
ci(e2e): add react native test
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Aug 3, 2024
1 parent 13d5b30 commit 07a5ac7
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/e2e-nm-react-native-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
schedule:
- cron: '0 */4 * * *'
push:
branches:
- master
paths:
- .github/actions/prepare/action.yml
- .github/workflows/e2e-nm-react-native-workflow.yml
- scripts/e2e-setup-ci.sh
- packages/yarnpkg-nm/sources/hoist.ts
- packages/yarnpkg-nm/sources/buildNodeModulesTree.ts
- packages/plugin-nm/sources/NodeModulesLinker.ts
pull_request:
paths:
- .github/actions/prepare/action.yml
- .github/workflows/e2e-nm-react-native-workflow.yml
- scripts/e2e-setup-ci.sh
- packages/yarnpkg-nm/sources/hoist.ts
- packages/yarnpkg-nm/sources/buildNodeModulesTree.ts
- packages/plugin-nm/sources/NodeModulesLinker.ts

name: 'E2E NM React Native'
jobs:
chore:
strategy:
matrix:
platform:
- ubuntu-latest
- windows-latest

name: 'Validating React Native install via node-modules linker on ${{matrix.platform}}'
runs-on: ${{matrix.platform}}

steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/prepare

- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh nm
yarn dlx react-native init MyProject
cd MyProject
yarn react-native build-android
shell: bash
env:
YARN_ENABLE_GLOBAL_CACHE: true
YARN_COMPRESSION_LEVEL: 0

0 comments on commit 07a5ac7

Please sign in to comment.