Files
flipper/.github/workflows/react-native-example.yml
dependabot[bot] 0402cf8966 Bump metro-config from 0.75.0 to 0.76.0 in /react-native/ReactNativeFlipperExample (#4582)
Summary:
Bumps [metro-config](https://github.com/facebook/metro) from 0.75.0 to 0.76.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-config's releases</a>.</em></p>
<blockquote>
<h2>v0.76.0</h2>
<ul>
<li><strong>[Breaking]</strong>: Increase minimum Node version from 14 to 16. (<a href="e5950aeaf0</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Breaking]</strong>: Remove <code>isAssetFile</code> from custom resolver context, add <code>assetExts</code>. (<a href="c6548f7ccc</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Feature]</strong>: Support <a href="https://facebook.github.io/metro/docs/module-api#requireresolveweak"><code>require.resolveWeak()</code></a>. (<a href="354d6e487a</a> by <a href="https://github.com/motiz88"><code>@​motiz88</code></a>)</li>
<li><strong>[Fix]</strong>: Don't over-invalidate on symlink changes if resolution through symlinks is not enabled. (<a href="2303c10b6b</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: Returning <code>false</code> from <a href="https://facebook.github.io/metro/docs/resolution#redirectmodulepath-string--string--false"><code>context.redirectModulePath</code></a> will resolve to empty module in all cases. (<a href="0f1846a64d</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Fix]</strong>: Respect extensionless entries in <code>browser</code>, <code>react-native</code> etc when resolving subpath package specifiers. (<a href="7e922270de</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Fix]</strong>: Remove undocumented Meta-only <code>__jsResource</code> and <code>__conditionallySplitJsResource</code> functions from module API. (<a href="f1d905bb60</a> and <a href="69c8fc707b</a> by <a href="https://github.com/motiz88"><code>@​motiz88</code></a>)</li>
</ul>
<blockquote>
<p>NOTE: Experimental features are not covered by semver and can change at any time.</p>
</blockquote>
<ul>
<li><strong>[Experimental]</strong>: Fixes and improvements for symlink support. (<a href="0e2a70a439</a>, <a href="3bef954304</a>, and <a href="eeb211fdcf</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Experimental]</strong>: Fix bug where <code>&quot;exports&quot;</code> field would be used on relative imports within a package. (<a href="cd25c2b5bb</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
</ul>
<h2>v0.75.1</h2>
<ul>
<li><strong>[Feature]</strong>: <code>metro-inspector-proxy</code>: Add a human-readable reference to each inspector entries/pages.(<a href="https://github-redirect.dependabot.com/facebook/metro/pull/921">facebook/metro#921</a> by <a href="https://github.com/byCedric"><code>@​byCedric</code></a>)</li>
<li><strong>[Feature]</strong>: <code>metro-inspector-proxy</code>: Report errors in the console. (<a href="da8b41b279</a> by <a href="https://github.com/mattbfb"><code>@​mattbfb</code></a>)</li>
<li><strong>[Fix]</strong>: Race condition where a very recently modified file might have missing metadata.(<a href="baf28ab0ee</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: Source maps may have invalid entries when using Terser minification. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/928">facebook/metro#928</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: <code>metro-inspector-proxy</code>: Fetch source maps from Metro. (<a href="6690b393cc</a> by <a href="https://github.com/mattbfb"><code>@​mattbfb</code></a>)</li>
<li><strong>[Fix]</strong>: Mitigate potential source map mismatches with concurrent transformations due to <a href="https://github-redirect.dependabot.com/terser/terser/issues/1341">terser#1341</a>. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/929">facebook/metro#929</a> by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
</ul>
<blockquote>
<p>NOTE: Experimental features are not covered by semver and can change at any time.</p>
</blockquote>
<ul>
<li><strong>[Experimental]</strong>: Add initial_build annotation to Resolving and Transforming Dependencies (<a href="fc83b521b2</a> by <a href="https://github.com/blakef"><code>@​blakef</code></a>)</li>
<li><strong>[Experimental]</strong>: Implement support for Package Exports (enabled via <code>resolver.unstable_enablePackageExports</code>) (<a href="4d7ab38ba9</a>, <a href="38b96f872a</a>, <a href="216d3e234c</a>, <a href="6e6f36fd98</a> by <a href="https://github.com/huntie"><code>@​huntie</code></a>)</li>
<li><strong>[Experimental]</strong>: Implement support for symlinks (enabled via <code>resolver.unstable_enableSymlinks</code>) (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/925">facebook/metro#925</a>, <a href="https://github-redirect.dependabot.com/facebook/metro/pull/926">facebook/metro#926</a>, etc. by <a href="https://github.com/robhogan"><code>@​robhogan</code></a>)</li>
</ul>
<p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.75.0...v0.75.1">https://github.com/facebook/metro/compare/v0.75.0...v0.75.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="64d85f0c06"><code>64d85f0</code></a> Release 0.76.0</li>
<li><a href="c6548f7ccc"><code>c6548f7</code></a> Add assetExts to ResolutionContext, remove isAssetFile</li>
<li><a href="64426854e3"><code>6442685</code></a> Upgrade to Flow 0.201.0</li>
<li><a href="4876b6e701"><code>4876b6e</code></a> Bump <code>@​braintree/sanitize-url</code> from 6.0.0 to 6.0.2 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/935">https://github.com/facebook/flipper/issues/935</a>)</li>
<li><a href="79baa715cd"><code>79baa71</code></a> Update website Open Graph image</li>
<li><a href="3cbd9ae2ad"><code>3cbd9ae</code></a> Fix Haste map cleanup with Haste module duplicates</li>
<li><a href="cd25c2b5bb"><code>cd25c2b</code></a> Update exports resolution to ignore absolute and relative imports</li>
<li><a href="7e922270de"><code>7e92227</code></a> Fix resolution edge case for package subpaths redirected by mainFields</li>
<li><a href="4c520eda2e"><code>4c520ed</code></a> Document module API</li>
<li><a href="ad31b162d8"><code>ad31b16</code></a> Replace regex String.replace uses with String.replaceAll (drop Node.js 14 com...</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.75.0...v0.76.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=metro-config&package-manager=npm_and_yarn&previous-version=0.75.0&new-version=0.76.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/4582

Reviewed By: mweststrate

Differential Revision: D44131764

Pulled By: passy

fbshipit-source-id: 2a218377147d0803728c50fb753260c74942f6a1
2023-03-16 13:20:32 -07:00

97 lines
3.6 KiB
YAML

name: Build React Native example
on: [push, pull_request]
jobs:
build-react-native-example-ios:
runs-on: macos-latest
defaults:
run:
working-directory: react-native/ReactNativeFlipperExample
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
with:
node-version: 16.x
- uses: maxim-lobanov/setup-cocoapods@v1
with:
# Path to Podfile.lock file to determine Cocoapods version
# n.b. doesn't seem to respect cwd:
podfile-path: react-native/ReactNativeFlipperExample/ios/Podfile.lock
- name: Install yarn dependencies
run: yarn install --ignore-scripts
- name: Install react-native-flipper
run: yarn relative-deps
- name: Install pod dependencies
run: cd ios && pod install --repo-update
- name: Build React Native iOS Example debug app
run: |
cd ios
IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") && echo $IPHONESIMULATOR
xcodebuild -workspace ReactNativeFlipperExample.xcworkspace -configuration Debug -scheme ReactNativeFlipperExample -sdk $IPHONESIMULATOR EXCLUDED_ARCHS="arm64"
build-react-native-example-android:
runs-on: ubuntu-latest
defaults:
run:
working-directory: react-native/ReactNativeFlipperExample
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
with:
node-version: 16.x
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Compute build cache
run: ${GITHUB_WORKSPACE}/scripts/checksum-android.sh checksum-android.txt
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum-android.txt') }}
- name: Install yarn dependencies
run: yarn install --ignore-scripts
- name: Install react-native-flipper
run: yarn relative-deps
- name: Build React Native Android Example debug app
run: |
mkdir -p android/app/src/main/assets
yarn react-native bundle --platform android --dev true --entry-file index.native.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
cd android && ./gradlew assembleDebug
build-react-native-example-windows:
runs-on: windows-2019
defaults:
run:
working-directory: react-native/ReactNativeFlipperExample
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
with:
node-version: 16.x
- uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- uses: microsoft/setup-msbuild@v1.1
- name: Gather environment info
run: npx envinfo
- name: Install vcpkg packages
run: vcpkg install openssl:x64-uwp openssl:arm-uwp
- name: Integrate vcpkg
run: vcpkg integrate install
- name: Install yarn dependencies (react-native-flipper)
run: yarn install
working-directory: react-native/react-native-flipper
- name: Nuget restore (react-native-flipper)
run: nuget install ReactNativeFlipper/packages.config
working-directory: react-native/react-native-flipper/windows
- name: Install yarn dependencies
run: yarn install
- name: Install react-native-flipper
run: yarn relative-deps
- name: Build React Native Windows Example debug app
shell: powershell
run: npx react-native run-windows --logging --no-autolink --no-packager --no-deploy --no-launch --arch x64