-
-
Notifications
You must be signed in to change notification settings - Fork 26
89 lines (70 loc) · 2.37 KB
/
test.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
name: test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
# Some key Flow versions that have seen syntax or semantic changes that
# required updates to decoders
flow-version: [0.142.0, current]
steps:
- uses: actions/checkout@v1
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Node dependencies
run: npm install
- name: Install Python dependencies (for documentation generation)
run: pip install cogapp
- name: Install flow version
run: npm install flow-bin@${{ matrix.flow-version }}
if: matrix.flow-version != 'current'
- name: Clean things
run: npm run clean
env:
CI: true
- name: Test Flow
run: npm run test:flow
env:
CI: true
- name: Test TypeScript
run: npm run test:typescript
env:
CI: true
- name: Unit tests
run: npm run test:jest
env:
CI: true
- name: Completeness check
run: npm run test:completeness
env:
CI: true
- name: Lints
run: npm run check
env:
CI: true
- name: Check docs
run: npm run check:docs
env:
CI: true
- name: Upload coverage report to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel: true
coveralls:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true