Skip to content

Commit acf11c0

Browse files
committed
chore: update CircleCI configuration to build and test packages with 'since master' flag and add smart-contracts build step
1 parent dd9c177 commit acf11c0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.circleci/config.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- ~/.cache/yarn
7979
- run:
8080
name: Build all packages with lerna
81-
command: 'yarn build --skip-nx-cache'
81+
command: 'yarn build --since master'
8282
- persist_to_workspace:
8383
root: *working_directory
8484
paths:
@@ -108,6 +108,7 @@ jobs:
108108
name: 'Test unit'
109109
command: |
110110
yarn test \
111+
--since master \
111112
--ignore @requestnetwork/request-client.js \
112113
--ignore @requestnetwork/smart-contracts \
113114
--ignore @requestnetwork/payment-detection \
@@ -156,6 +157,9 @@ jobs:
156157
steps:
157158
- attach_workspace:
158159
at: *working_directory
160+
- run:
161+
name: 'Build smart-contracts'
162+
command: 'yarn build --scope @requestnetwork/smart-contracts'
159163
- run:
160164
name: 'Deploy test contract from smart-contracts'
161165
command: 'yarn deploy:contracts'
@@ -164,6 +168,7 @@ jobs:
164168
name: 'Test request-client.js, smart-contracts, payment-detection and payment-processor'
165169
command: |
166170
yarn test \
171+
--since master \
167172
--scope @requestnetwork/request-client.js \
168173
--scope @requestnetwork/smart-contracts \
169174
--scope @requestnetwork/payment-detection \
@@ -188,6 +193,9 @@ jobs:
188193
steps:
189194
- attach_workspace:
190195
at: *working_directory
196+
- run:
197+
name: 'Build smart-contracts'
198+
command: 'yarn build --scope @requestnetwork/smart-contracts'
191199
- run:
192200
name: 'Deploy test contract from smart-contracts'
193201
command: 'yarn deploy:contracts'
@@ -201,6 +209,7 @@ jobs:
201209
name: 'Test integration-test'
202210
command: |
203211
yarn test \
212+
--since master \
204213
--scope @requestnetwork/integration-test
205214
- store_test_results:
206215
path: packages/integration-test/reports/
@@ -271,6 +280,9 @@ jobs:
271280
- run:
272281
name: 'Authenticate with registry'
273282
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
283+
- run:
284+
name: 'Build all packages with lerna'
285+
command: 'yarn build --skip-nx-cache'
274286
- run:
275287
name: 'Publish'
276288
command: |

0 commit comments

Comments
 (0)