Add Hermes Xcode integration test to GH Actions (#41187)

Summary:
After disabling the E2E tests, we lost a test that was verifying that Hermes works well with the latest version of React Native for iOS
This change introduce this test back in GH actions

## Changelog:
[Internal] Add tests for Hermes-Xcode integration to GH Actions

Pull Request resolved: https://github.com/facebook/react-native/pull/41187

Test Plan: CI is green 🤞

Reviewed By: NickGerleman

Differential Revision: D50737860

Pulled By: cipolleschi

fbshipit-source-id: f4bc09be879af7aba0ca42f1b7e407a5d5dc0986
This commit is contained in:
Riccardo Cipolleschi 2023-10-31 09:37:24 -07:00 коммит произвёл Facebook GitHub Bot
Родитель a286f00073
Коммит 475b835e43
4 изменённых файлов: 46 добавлений и 2 удалений

41
.github/workflows/ios-tests.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,41 @@
name: ios-tests
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
test_ios_rntester-Hermes:
runs-on: macos-latest-large
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Yarn Install
run: yarn install
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.2'
- name: Cache cocoapods
uses: actions/cache@v3
with:
path: packages/rn-tester/Pods
key: ${{ runner.os }}-RNTesterPods-${{ hashFiles('packages/rn-tester/Podfile.lock') }}-${{ hashFiles('packages/rn-tester/Podfile') }}
- name: Pod Install
run: |
cd packages/rn-tester
bundle install
bundle exec pod install
- name: Install XCBeautify
run: brew install xcbeautify
- name: Build iOS
run: ./scripts/objc-test.sh

1
.gitignore поставляемый
Просмотреть файл

@ -109,6 +109,7 @@ package-lock.json
/packages/react-native/template/vendor
.ruby-version
/**/.ruby-version
vendor/
# iOS / CocoaPods
/packages/react-native/template/ios/build/

Просмотреть файл

@ -91,7 +91,7 @@ PLATFORMS
ruby
DEPENDENCIES
activesupport (>= 6.1.7.3)
activesupport (>= 6.1.7.3, < 7.1.0)
cocoapods (~> 1.12)
RUBY VERSION

Просмотреть файл

@ -1,6 +1,8 @@
# Gemfile
source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"
gem 'cocoapods', '~> 1.12'
gem 'rexml'
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'