-
-
Notifications
You must be signed in to change notification settings - Fork 182
80 lines (78 loc) · 2.85 KB
/
monorepo.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
on: [push, pull_request]
name: monorepo
jobs:
do-de-stuff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn
- run: ./node_modules/.bin/lerna run lint
- run: ./node_modules/.bin/lerna run test -- --coverage
- name: Coveralls (signpdf)
if: ${{ !cancelled() }}
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: signpdf
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/signpdf
path-to-lcov: packages/signpdf/coverage/lcov.info
- name: Coveralls (utils)
if: ${{ !cancelled() }}
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: utils
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/utils
path-to-lcov: packages/utils/coverage/lcov.info
- name: Coveralls (placeholder-pdfkit010)
if: ${{ !cancelled() }}
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: placeholder-pdfkit010
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/placeholder-pdfkit010
path-to-lcov: packages/placeholder-pdfkit010/coverage/lcov.info
- name: Coveralls (placeholder-pdfkit)
if: ${{ !cancelled() }}
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: placeholder-pdfkit
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/placeholder-pdfkit
path-to-lcov: packages/placeholder-pdfkit/coverage/lcov.info
- name: Coveralls (placeholder-plain)
if: ${{ !cancelled() }}
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: placeholder-plain
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/placeholder-plain
path-to-lcov: packages/placeholder-plain/coverage/lcov.info
- name: Coveralls (placeholder-pdf-lib)
if: ${{ !cancelled() }}
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: placeholder-pdf-lib
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/placeholder-pdf-lib
path-to-lcov: packages/placeholder-pdf-lib/coverage/lcov.info
- name: Close Coveralls
if: ${{ !cancelled() }}
uses: coverallsapp/github-action@master
with:
parallel-finished: true
carryforward: "signpdf,utils,placeholder-pdfkit010,placeholder-pdfkit,placeholder-plain"
windows-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn
- run: ./node_modules/.bin/lerna run test