-
-
Notifications
You must be signed in to change notification settings - Fork 42
102 lines (89 loc) · 2.74 KB
/
tests.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Tests
on:
- push
- pull_request
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Run tests
run: yarn test
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
- name: Run tests
run: yarn workspace web-example run test
types:
name: Type checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
- name: Check package types
run: yarn types
- name: Check web example types
run: yarn workspace web-example run tsc
- name: Check vanilla example types
run: yarn workspace vanilla-example run tsc
format:
name: Code formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Check formatting
run: yarn check-format
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Lint flipper plugin
run: yarn workspace flipper-plugin-performance run lint
build:
name: Package builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Build packages
env:
PACKAGES: flipper-plugin-performance react-native-performance
run: for p in $PACKAGES; do pushd packages/$p && npm pack --dry-run && popd; done