From 27533566c434519197d9d6978f0c64c5994d92d9 Mon Sep 17 00:00:00 2001 From: merceyz Date: Sat, 3 Aug 2024 19:10:47 +0200 Subject: [PATCH 1/4] 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 From ea765ab2102fc3a12949716061fd297cd881f2ee Mon Sep 17 00:00:00 2001 From: merceyz Date: Sat, 3 Aug 2024 19:22:02 +0200 Subject: [PATCH 2/4] chore: use java 17 --- .github/workflows/e2e-nm-react-native-workflow.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/e2e-nm-react-native-workflow.yml b/.github/workflows/e2e-nm-react-native-workflow.yml index f407fcfb29fd..bdeedec8ae6d 100644 --- a/.github/workflows/e2e-nm-react-native-workflow.yml +++ b/.github/workflows/e2e-nm-react-native-workflow.yml @@ -35,6 +35,11 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + - uses: ./.github/actions/prepare - name: 'Running the integration test' From 774057a9f04dac4e1abe010ce6ffbe94658c58c9 Mon Sep 17 00:00:00 2001 From: merceyz Date: Wed, 16 Oct 2024 08:39:20 +0200 Subject: [PATCH 3/4] chore: update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 615fd4d34a0b..345425c39e16 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ On top of our classic integration tests, we also run Yarn every day against the - [![](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-angular-workflow.yml/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-angular-workflow.yml) - [![](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-babel-workflow.yml/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-babel-workflow.yml) - [![](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-berry-workflow.yml/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-berry-workflow.yml) +- [![](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-react-native-workflow.yml/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-nm-react-native-workflow.yml) - [![](https://github.com/yarnpkg/berry/actions/workflows/e2e-nyc-workflow.yml/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-nyc-workflow.yml) - [![](https://github.com/yarnpkg/berry/actions/workflows/e2e-parcel-workflow.yml/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-parcel-workflow.yml) - [![](https://github.com/yarnpkg/berry/actions/workflows/e2e-pnp-angular-workflow.yml/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-pnp-angular-workflow.yml) From ee9d8bbc05edcb456ad3c978f01f41d94f231695 Mon Sep 17 00:00:00 2001 From: merceyz Date: Wed, 16 Oct 2024 08:44:20 +0200 Subject: [PATCH 4/4] ci: use `@react-native-community/cli init` --- .github/workflows/e2e-nm-react-native-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-nm-react-native-workflow.yml b/.github/workflows/e2e-nm-react-native-workflow.yml index bdeedec8ae6d..280f9807f03d 100644 --- a/.github/workflows/e2e-nm-react-native-workflow.yml +++ b/.github/workflows/e2e-nm-react-native-workflow.yml @@ -46,7 +46,7 @@ jobs: run: | source scripts/e2e-setup-ci.sh nm - yarn dlx react-native init MyProject + yarn dlx @react-native-community/cli init MyProject cd MyProject yarn react-native build-android