Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(e2e): add react native test #6435

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/e2e-nm-react-native-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- uses: ./.github/actions/prepare

- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh nm

yarn dlx @react-native-community/cli init MyProject
cd MyProject
yarn react-native build-android

shell: bash
env:
YARN_ENABLE_GLOBAL_CACHE: true
YARN_COMPRESSION_LEVEL: 0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading