-
Notifications
You must be signed in to change notification settings - Fork 43
180 lines (178 loc) · 6.73 KB
/
ci.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
name: CI Pipeline
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: echo "Start"
- run: yarn
- run: yarn workspace @ringcentral-integration/phone-number test --coverage
- name: Phone Number Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/phone-number/coverage/lcov.info
flag-name: phone-number
parallel: true
- run: yarn workspace @ringcentral-integration/i18n test --coverage
- name: I18n Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/i18n/coverage/lcov.info
flag-name: i18n
parallel: true
- run: yarn workspace @ringcentral-integration/locale-loader test --coverage
- name: locale-loader Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/locale-loader/coverage/lcov.info
flag-name: locale-loader
parallel: true
- run: yarn workspace @ringcentral-integration/utils test --coverage
- name: Core Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/utils/coverage/lcov.info
flag-name: utils
parallel: true
- run: yarn workspace @ringcentral-integration/core test --coverage
- name: Core Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/core/coverage/lcov.info
flag-name: core
parallel: true
- run: yarn workspace @ringcentral-integration/commons test --coverage
- name: Commons Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/ringcentral-integration/coverage/lcov.info
flag-name: commons
parallel: true
# - run: yarn workspace @ringcentral-integration/widgets test --coverage
# - name: Widgets Coveralls
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ./packages/ringcentral-widgets/coverage/lcov.info
# flag-name: widgets
# parallel: true
- run: yarn workspace ringcentral-widgets-test test --ci --coverage
env:
NODE_OPTIONS: --max-old-space-size=4096
- name: Widgets Integration Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/ringcentral-widgets-test/coverage/lcov.info
flag-name: widgets-integration
parallel: true
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
branch-release:
needs: tests
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn
- run: yarn workspace @ringcentral-integration/utils release
- name: Utils Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: utils-release
FOLDER: release/utils
CLEAN: true
- run: yarn workspace @ringcentral-integration/core release
- name: Core Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: core-release
FOLDER: release/core
CLEAN: true
- run: yarn workspace @ringcentral-integration/i18n release
- name: I18n Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: i18n-release
FOLDER: release/i18n
CLEAN: true
- run: yarn workspace @ringcentral-integration/locale-loader release
- name: Locale Loader Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: locale-loader-release
FOLDER: release/locale-loader
CLEAN: true
- run: yarn workspace @ringcentral-integration/phone-number release
- name: Phone Number Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: phone-number-release
FOLDER: release/phone-number
CLEAN: true
- run: yarn workspace @ringcentral-integration/commons release
- name: Commons Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: commons-release
FOLDER: release/ringcentral-integration
CLEAN: true
- run: yarn workspace @ringcentral-integration/widgets release
- name: Widgets Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: widgets-release
FOLDER: release/ringcentral-widgets
CLEAN: true
- run: yarn workspace @ringcentral-integration/engage-voice-widgets release
- name: Engage Voice-widgets Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: engage-voice-widgets-release
FOLDER: release/engage-voice-widgets
CLEAN: true
- run: yarn workspace @ringcentral-integration/glip-widgets release
- name: Glip Widgets Branch Release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: glip-widgets-release
FOLDER: release/glip-widgets
CLEAN: true