How to deploy react-native app all in one click-Part2

Jest

Needs

android-qa:
needs: lint-jest
if: ${{ github.event.inputs.isDevelopment == 'true' }}
uses: olulo/kickgoing/.github/workflows/deploy-android-all-in-one.yml@master
ios-qa:
needs: lint-jest
if: ${{ github.event.inputs.isDevelopment == 'true' }}
uses: olulo/kickgoing/.github/workflows/deploy-ios-all-in-one.yml@master

Cache

Path

- name: Cache node modules
uses: actions/cache@v2
with:
path: ./node_modules

Key

- name: Cache node modules
uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-cache-node-modules-${{ hashFiles('./yarn.lock') }}

cache-hit

- name: Cache node modules
uses: actions/cache@v2
id: cache-node-modules
...
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit == ''
run: |
yarn install && npx jetify

restore-keys

- name: Cache node modules
uses: actions/cache@v2
restore-keys: |
${{ runner.os }}-cache-node-modules

outputs

install-npm:
runs-on: ubuntu-latest
steps:
...
- name: Create npm cache key
id: npm-cache-hash
run: echo "::set-output name=hash::${{ runner.os }}-cache-node-modules-${{ hashFiles('./yarn.lock') }}"
- name: Cache node modules
uses: actions/cache@v2
id: cache-node-modules
with:
path: ./node_modules
key: ${{ steps.npm-cache-hash.outputs.hash }}
...
outputs:
cache-key: ${{ steps.npm-cache-hash.outputs.hash }}
lint-jest:
needs: install-npm
runs-on: ubuntu-latest
steps:
...
- name: Load cached node modules
uses: actions/cache@v2
id: cache-node-modules
with:
path: ./node_modules
key: ${{ needs.install-npm.outputs.cache-key }}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Convert IPL CSV file data into JSON file with Node.js

Implementing Code Push in React Native Application

Web Frameworks: React Continues to Reign

Why all developers need to know Array.reduce()

If you’re not sure what to do, take the beautiful one.

JavaScript Classes and Instantiation Patterns: Cheat Sheet (5 patterns) — Functional…

VueJS unit tests as a learning tool: v-for

Search Engine and Social Media Optimization for Web Developers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lee young-jun

Lee young-jun

Man

More from Medium

Shopify App Authentication — There’s a Better Way

Configure GRPC in macOS

Introduction to Auth0 Actions

Using MongoDB Realm to scrap ship position data