Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/3315 Before this change, it was impossible to make changes to js-flipper and react-flipper-example at the same time because react-flipper-example used a published version of js-flipper Reviewed By: passy Differential Revision: D33623034 fbshipit-source-id: b291b18aace49163a6edc4a3f5c22da9ef936b7c
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: js-flipper
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test-js-flipper:
|
|
defaults:
|
|
run:
|
|
working-directory: js/js-flipper
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14.x'
|
|
- name: yarn install (with retry)
|
|
uses: nick-invision/retry@v2.6.0
|
|
with:
|
|
command: cd js/js-flipper && yarn
|
|
timeout_minutes: 30
|
|
max_attempts: 3
|
|
- name: lint
|
|
run: yarn lint
|
|
- name: test
|
|
run: yarn test --coverage
|
|
|
|
build-react-example:
|
|
defaults:
|
|
run:
|
|
working-directory: js/react-flipper-example
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14.x'
|
|
- name: js-flipper - yarn install (with retry)
|
|
uses: nick-invision/retry@v2.6.0
|
|
with:
|
|
command: cd js/js-flipper && yarn
|
|
timeout_minutes: 30
|
|
max_attempts: 3
|
|
- name: js-flipper build
|
|
run: yarn build
|
|
working-directory: js/js-flipper
|
|
- name: yarn install (with retry)
|
|
uses: nick-invision/retry@v2.6.0
|
|
with:
|
|
command: cd js/react-flipper-example && yarn
|
|
timeout_minutes: 30
|
|
max_attempts: 3
|
|
- name: link local js-flipper
|
|
run: yarn relative-deps
|
|
- name: build
|
|
run: yarn build
|