From 07a5ac7f964861f55e317804c3363cbbfe592e9b Mon Sep 17 00:00:00 2001 From: merceyz Date: Sat, 3 Aug 2024 19:10:47 +0200 Subject: [PATCH] ci(e2e): add react native test --- .../e2e-nm-react-native-workflow.yml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/e2e-nm-react-native-workflow.yml diff --git a/.github/workflows/e2e-nm-react-native-workflow.yml b/.github/workflows/e2e-nm-react-native-workflow.yml new file mode 100644 index 000000000000..f407fcfb29fd --- /dev/null +++ b/.github/workflows/e2e-nm-react-native-workflow.yml @@ -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