Skip to content

Commit 2753356

Browse files
committed
ci(e2e): add react native test
1 parent 915dede commit 2753356

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
on:
2+
schedule:
3+
- cron: '0 */4 * * *'
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- .github/actions/prepare/action.yml
9+
- .github/workflows/e2e-nm-react-native-workflow.yml
10+
- scripts/e2e-setup-ci.sh
11+
- packages/yarnpkg-nm/sources/hoist.ts
12+
- packages/yarnpkg-nm/sources/buildNodeModulesTree.ts
13+
- packages/plugin-nm/sources/NodeModulesLinker.ts
14+
pull_request:
15+
paths:
16+
- .github/actions/prepare/action.yml
17+
- .github/workflows/e2e-nm-react-native-workflow.yml
18+
- scripts/e2e-setup-ci.sh
19+
- packages/yarnpkg-nm/sources/hoist.ts
20+
- packages/yarnpkg-nm/sources/buildNodeModulesTree.ts
21+
- packages/plugin-nm/sources/NodeModulesLinker.ts
22+
23+
name: 'E2E NM React Native'
24+
jobs:
25+
chore:
26+
strategy:
27+
matrix:
28+
platform:
29+
- ubuntu-latest
30+
- windows-latest
31+
32+
name: 'Validating React Native install via node-modules linker on ${{matrix.platform}}'
33+
runs-on: ${{matrix.platform}}
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- uses: ./.github/actions/prepare
39+
40+
- name: 'Running the integration test'
41+
run: |
42+
source scripts/e2e-setup-ci.sh nm
43+
44+
yarn dlx react-native init MyProject
45+
cd MyProject
46+
yarn react-native build-android
47+
48+
shell: bash
49+
env:
50+
YARN_ENABLE_GLOBAL_CACHE: true
51+
YARN_COMPRESSION_LEVEL: 0

0 commit comments

Comments
 (0)