-
Notifications
You must be signed in to change notification settings - Fork 955
55 lines (53 loc) · 1.4 KB
/
js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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