Files
flipper/.github/workflows/js.yml
Andrey Goncharov 41d7b2a307 Update OSS node version (#3822)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3822

Update Node version in CI pipeline

Reviewed By: lblasa

Differential Revision: D37207646

fbshipit-source-id: 157d1da9b01ca3ad34047908abc629f84d6736bc
2022-06-16 06:27:01 -07:00

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: '16.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: '16.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