Merge fc0a7c599a9d375478fd542e730ce602b65e0763 into sapling-pr-archiv… #13610
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: js-flipper | |
# This action runs on 'git push' and PRs | |
on: [push, pull_request] | |
jobs: | |
test-js-flipper: | |
defaults: | |
run: | |
working-directory: js/js-flipper | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '18.x' | |
- name: yarn install (with retry) | |
uses: nick-fields/[email protected] | |
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/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '18.x' | |
- name: js-flipper - yarn install (with retry) | |
uses: nick-fields/[email protected] | |
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-fields/[email protected] | |
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 |