Skip to content

build(deps): bump the npm_and_yarn group across 2 directories with 12… #452

build(deps): bump the npm_and_yarn group across 2 directories with 12…

build(deps): bump the npm_and_yarn group across 2 directories with 12… #452

name: react-native-performance
on: push
env:
RUBY_VERSION: 3.0.3
NODE_VERSION: 16.13.0
jobs:
build-ts:
name: 'Build Typescript'
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Yarn
run: npm install --global yarn
- name: Checkout
uses: actions/checkout@v3
- name: Build Typescript
run: |
yarn
yarn build
build-fixture-ts:
name: 'Build fixture Typescript'
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Yarn
run: npm install --global yarn
- name: Checkout
uses: actions/checkout@v3
- name: Build Typescript in fixture
run: |
yarn
cd fixture
yarn
yarn build
lint-ts:
name: 'Lint Typescript'
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Yarn
run: npm install --global yarn
- name: Checkout
uses: actions/checkout@v3
- name: Lint Typescript
run: |
yarn
yarn lint
test-ts:
name: 'Test Typescript'
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Yarn
run: npm install --global yarn
- name: Checkout
uses: actions/checkout@v3
- name: Test Typescript
run: |
yarn
yarn test --forceExit
metro-ios:
name: 'Metro bundling for iOS'
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn build
cd fixture
yarn
mkdir -p /tmp/artifacts
yarn react-native bundle --entry-file index.js --platform ios --bundle-output /tmp/artifacts/bundle.js --sourcemap-output /tmp/artifacts/output.map
metro-android:
name: 'Metro bundling for Android'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
cd fixture
yarn
cd android
mkdir -p /tmp/artifacts
./gradlew bundleDebugJsAndAssets
build-ios:
name: 'Build iOS'
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: ruby setup
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- run: |
bundle install
cd fixture
yarn
bundle exec pod install
mkdir -p /tmp/artifacts
set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean build -scheme ReactNativePerformanceFixture -workspace ReactNativePerformanceFixture.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' | tee /tmp/artifacts/ios_build.log
build-android:
name: 'Build Android'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: ruby setup
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- run: |
bundle install
cd fixture
yarn
cd android
./gradlew assembleDebug