forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 148
ci: convert remaining Azure Pipelines PR checks to Github Actions #2590
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
Open
Saadnajmi
wants to merge
26
commits into
microsoft:main
Choose a base branch
from
Saadnajmi:gha
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+385
−1,034
Open
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1252282
ci: Convert PR jobs to Github Actions
Saadnajmi b8c5134
use allowed action
Saadnajmi d3f4713
Update microsoft-pr.yml
Saadnajmi a5073d8
simplify matrix
Saadnajmi 77d0ed3
Merge branch 'gha' of github.com:Saadnajmi/react-native-macos into gha
Saadnajmi bc8a06c
setup-toolchain
Saadnajmi a400d20
more
Saadnajmi bf05252
xcode -> setup-toolchain
Saadnajmi d32448b
f
Saadnajmi bc863c1
f
Saadnajmi f35d389
delete most of .ado folder
Saadnajmi 2888986
bring back verdaccio files and uncomment jobs
Saadnajmi bfc41b8
bring back more scripts
Saadnajmi 55ca895
try: copilot fix verdaccio hangs
Saadnajmi 2a9ed3c
Move workflows to separate files
Saadnajmi 8de0577
only on stable
Saadnajmi 19bf665
Revert "try: copilot fix verdaccio hangs"
Saadnajmi ab261db
copy RNTA setup toolchain action instead of rnx-kit one
Saadnajmi fa37265
f
Saadnajmi 8a0ac38
f
Saadnajmi 8256598
try use ccache
Saadnajmi c740aed
use xcode 16.4 again
Saadnajmi c59d3e6
f
Saadnajmi b766bbf
disable ccache
Saadnajmi e276015
PR feedback
Saadnajmi 21d1a0e
Merge branch 'main' into gha
Saadnajmi 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,8 +52,8 @@ jobs: | |
id: config | ||
run: | | ||
PUBLISH_TAG=$(jq -r '.release.version.generatorOptions.currentVersionResolverMetadata.tag' nx.json) | ||
echo "publishTag=$PUBLISH_TAG" >> $GITHUB_OUTPUT | ||
echo "Using publish tag from nx.json: $PUBLISH_TAG" | ||
echo "publishTag=${PUBLISH_TAG}" >> "$GITHUB_OUTPUT" | ||
echo "Using publish tag from nx.json: ${PUBLISH_TAG}" | ||
- name: Configure git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -86,3 +86,194 @@ jobs: | |
run: yarn | ||
- name: Check constraints | ||
run: yarn constraints | ||
|
||
javascript-tests: | ||
name: "JavaScript Tests" | ||
permissions: {} | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
filter: blob:none | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '23' | ||
|
||
- name: Install Homebrew dependencies | ||
run: | | ||
brew install xcbeautify ccache | ||
|
||
- name: Setup Xcode | ||
run: | | ||
sudo xcode-select --switch /Applications/Xcode_16.2.app | ||
Saadnajmi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Download Xcode Platforms | ||
run: | | ||
xcodebuild -downloadAllPlatforms | ||
sudo xcodebuild -runFirstLaunch | ||
|
||
- name: Install npm dependencies | ||
run: yarn install | ||
|
||
- name: Run tests | ||
run: yarn test-ci | ||
|
||
- name: Flow type check | ||
run: yarn flow-check | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Format check | ||
run: yarn format-check | ||
|
||
build-test-rntester: | ||
name: "Build RNTester - ${{ matrix.friendly_name }}" | ||
permissions: {} | ||
runs-on: macos-latest | ||
timeout-minutes: 90 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: macos_debug_oldarch_jsc | ||
friendly_name: 'macOS, Old Arch, JSC' | ||
sdk: macosx | ||
configuration: Debug | ||
scheme: RNTester-macOS | ||
packager_platform: 'macos' | ||
new_arch_enabled: '0' | ||
use_hermes: '0' | ||
- name: macos_debug_newarch_jsc | ||
friendly_name: 'macOS, New Arch, JSC' | ||
sdk: macosx | ||
configuration: Debug | ||
scheme: RNTester-macOS | ||
packager_platform: 'macos' | ||
new_arch_enabled: '1' | ||
use_hermes: '0' | ||
- name: ios_debug_oldarch_jsc | ||
friendly_name: 'iOS, Old Arch, JSC' | ||
sdk: iphonesimulator | ||
configuration: Debug | ||
scheme: RNTester | ||
packager_platform: 'ios' | ||
new_arch_enabled: '0' | ||
use_hermes: '0' | ||
- name: ios_debug_newarch_jsc | ||
friendly_name: 'iOS, New Arch, JSC' | ||
sdk: iphonesimulator | ||
configuration: Debug | ||
scheme: RNTester | ||
packager_platform: 'ios' | ||
new_arch_enabled: '1' | ||
use_hermes: '0' | ||
- name: xros_debug_oldarch_jsc | ||
friendly_name: 'xrOS, Old Arch, JSC' | ||
sdk: xrsimulator | ||
configuration: Debug | ||
scheme: RNTester-visionOS | ||
packager_platform: 'ios' | ||
new_arch_enabled: '0' | ||
use_hermes: '0' | ||
- name: xros_debug_newarch_jsc | ||
friendly_name: 'xrOS, New Arch, JSC' | ||
sdk: xrsimulator | ||
configuration: Debug | ||
scheme: RNTester-visionOS | ||
packager_platform: 'ios' | ||
new_arch_enabled: '1' | ||
use_hermes: '0' | ||
- name: macos_debug_oldarch_hermes | ||
friendly_name: 'macOS, Old Arch, Hermes' | ||
sdk: macosx | ||
configuration: Debug | ||
scheme: RNTester-macOS | ||
packager_platform: 'macos' | ||
new_arch_enabled: '0' | ||
use_hermes: '1' | ||
- name: macos_debug_newarch_hermes | ||
friendly_name: 'macOS, New Arch, Hermes' | ||
sdk: macosx | ||
configuration: Debug | ||
scheme: RNTester-macOS | ||
packager_platform: 'macos' | ||
new_arch_enabled: '1' | ||
use_hermes: '1' | ||
- name: ios_debug_oldarch_hermes | ||
friendly_name: 'iOS, Old Arch, Hermes' | ||
sdk: iphonesimulator | ||
configuration: Debug | ||
scheme: RNTester | ||
packager_platform: 'ios' | ||
new_arch_enabled: '0' | ||
use_hermes: '1' | ||
- name: ios_debug_newarch_hermes | ||
friendly_name: 'iOS, New Arch, Hermes' | ||
sdk: iphonesimulator | ||
configuration: Debug | ||
scheme: RNTester | ||
packager_platform: 'ios' | ||
new_arch_enabled: '1' | ||
use_hermes: '1' | ||
- name: xros_debug_oldarch_hermes | ||
friendly_name: 'xrOS, Old Arch, Hermes' | ||
sdk: xrsimulator | ||
configuration: Debug | ||
scheme: RNTester-visionOS | ||
packager_platform: 'ios' | ||
new_arch_enabled: '0' | ||
use_hermes: '1' | ||
- name: xros_debug_newarch_hermes | ||
friendly_name: 'xrOS, New Arch, Hermes' | ||
sdk: xrsimulator | ||
configuration: Debug | ||
scheme: RNTester-visionOS | ||
packager_platform: 'ios' | ||
new_arch_enabled: '1' | ||
use_hermes: '1' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
filter: blob:none | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '23' | ||
|
||
- name: Install Homebrew dependencies | ||
run: | | ||
brew install xcbeautify ccache | ||
|
||
- name: Setup Xcode | ||
run: | | ||
sudo xcode-select --switch /Applications/Xcode_16.2.app | ||
|
||
- name: Download Xcode Platforms | ||
run: | | ||
xcodebuild -downloadAllPlatforms | ||
sudo xcodebuild -runFirstLaunch | ||
|
||
- name: Install npm dependencies | ||
run: yarn install | ||
|
||
- name: Install Pods | ||
working-directory: packages/rn-tester | ||
env: | ||
RCT_NEW_ARCH_ENABLED: ${{ matrix.new_arch_enabled }} | ||
USE_HERMES: ${{ matrix.use_hermes }} | ||
run: | | ||
set -eox pipefail | ||
bundle install | ||
bundle exec pod install --verbose | ||
|
||
- name: Build ${{ matrix.scheme }} | ||
env: | ||
CCACHE_DISABLE: 1 | ||
run: | | ||
set -eox pipefail | ||
.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ matrix.sdk }} ${{ matrix.configuration }} ${{ matrix.scheme }} build |
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.