-
-
Notifications
You must be signed in to change notification settings - Fork 373
feat: integrate metro package into release pipeline and changesets #4035
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
0542707
feat: integrate metro package into release pipeline and changesets
ScriptedAlchemy e3ab164
feat: integrate metro packages into CI/CD pipeline
ScriptedAlchemy cabe31b
Potential fix for code scanning alert no. 136: Workflow does not cont…
ScriptedAlchemy 611a499
Potential fix for code scanning alert no. 135: Workflow does not cont…
ScriptedAlchemy 7aec258
fix(module-federation): remove incorrect secrets: inherit from reusab…
ScriptedAlchemy f5006fe
fix(module-federation): remove duplicate permissions block in build-m…
ScriptedAlchemy 008d63e
test(module-federation): trigger workflow to test fixes
ScriptedAlchemy 8ac582e
fix(module-federation): complete e2e-modern-ssr workflow with actual …
ScriptedAlchemy 7e6ed3b
fix(module-federation): move metro package publint checks to metro wo…
ScriptedAlchemy 2a0df69
test(module-federation): trigger workflow with metro exclusions
ScriptedAlchemy 98ccb58
fix(module-federation): optimize metro build workflow to preserve nx …
ScriptedAlchemy 948daba
fix(metro-core): correct NX build configuration to avoid --prefix fla…
ScriptedAlchemy d79106a
fix(module-federation): integrate metro packages into main build work…
ScriptedAlchemy 57aca25
fix(module-federation): properly separate metro build from main workflow
ScriptedAlchemy 6879efa
fix(module-federation): build all packages in metro workflow without …
ScriptedAlchemy 47cb755
fix(metro-core): resolve linting issues
ScriptedAlchemy e168de6
fix: resolve ESLint errors in metro-core package
ScriptedAlchemy 1b9add4
fix: update metro-plugin-rnef build configuration
ScriptedAlchemy 11b08ea
Merge branch 'main' into metro-ci
ScriptedAlchemy 1847d3e
fix: add pnpm install after build to ensure workspace linking
ScriptedAlchemy 0de2a9e
fix: remove redundant pnpm install from modernjs build command
ScriptedAlchemy 8b2c322
fix: correct cypress config and sourceRoot paths in modernjs-ssr proj…
ScriptedAlchemy cb18e27
fix(module-federation): resolve ModernJS SSR CI failures
ScriptedAlchemy 27e1631
fix(module-federation): debug and fix ModernJS SSR E2E issues
ScriptedAlchemy 4f06e39
fix: add missing @module-federation/modern-js dependency to dynamic-r…
ScriptedAlchemy cd4715a
fix: simplify e2e-modern-ssr workflow and ensure proper package linking
ScriptedAlchemy 5a12534
Apply suggested changes
ScriptedAlchemy b1ead79
fix: remove --prefer-offline flag from pnpm install
ScriptedAlchemy 4d51454
chore: sourcemaps
ScriptedAlchemy 660d568
Update README.md
ScriptedAlchemy bb42c6c
Update packages/metro-plugin-rnef/project.json
ScriptedAlchemy 378950d
chore: format metro-plugin-rnef project.json
ScriptedAlchemy 6f60766
chore: update changeset for metro packages
ScriptedAlchemy 3a4cfbc
chore: sourcemaps
ScriptedAlchemy 74d5cd3
chore: update changeset config and vscode launch configuration
ScriptedAlchemy 6efc3b6
Merge branch 'main' into metro-ci
ScriptedAlchemy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@module-federation/metro-plugin-rnc-cli': patch | ||
'@module-federation/metro-plugin-rnef': patch | ||
'@module-federation/metro': patch | ||
--- | ||
|
||
Initial Release of Metro package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build Metro Packages | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-metro: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Pnpm | ||
run: | | ||
corepack prepare pnpm@8.11.0 --activate | ||
corepack enable | ||
|
||
- name: Setup Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: 'pnpm' | ||
|
||
- name: Set Nx SHA | ||
uses: nrwl/nx-set-shas@v3 | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Build All Required Packages | ||
run: | | ||
npx nx run-many --targets=build --projects=tag:type:pkg,tag:type:metro --parallel=4 | ||
|
||
- name: Test Metro Packages | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 2 | ||
timeout_minutes: 5 | ||
command: npx nx affected -t test --parallel=2 --exclude='*,!tag:type:metro' | ||
|
||
- name: Lint Metro Packages | ||
run: npx nx run-many --targets=lint --projects=tag:type:metro --parallel=2 | ||
|
||
- name: Check Metro Package Publishing Compatibility | ||
run: | | ||
for pkg in packages/metro-*; do | ||
if [ -f "$pkg/package.json" ]; then | ||
echo "Checking $pkg..." | ||
npx publint "$pkg" | ||
fi | ||
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset'; | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
...nxE2EPreset(__filename, { cypressDir: 'cypress' }), | ||
baseUrl: 'http://localhost:8080', | ||
injectDocumentDomain: true, | ||
}, | ||
defaultCommandTimeout: 20000, | ||
retries: { | ||
runMode: 2, | ||
openMode: 1, | ||
}, | ||
}); |
6 changes: 6 additions & 0 deletions
6
apps/modernjs-ssr/dynamic-nested-remote/cypress/e2e/app.cy.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
describe('ModernJS SSR Dynamic Nested Remote', () => { | ||
it('should load the app', () => { | ||
cy.visit('http://localhost:8080'); | ||
cy.contains('dynamic-nested-remote'); | ||
}); | ||
}); |
4 changes: 4 additions & 0 deletions
4
apps/modernjs-ssr/dynamic-nested-remote/cypress/support/e2e.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This file is processed and loaded automatically before your test files. | ||
// You can change the location of this file or turn off processing it by setting the | ||
// "supportFile" option to false. | ||
// You can read more here: https://on.cypress.io/configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.