Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update CircleCI configuration to build and test packages with …
…'since master' flag and add smart-contracts build step
  • Loading branch information
rodrigopavezi committed Dec 10, 2024
commit acf11c078700109885c57fe55fa44ec0342033a9
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- ~/.cache/yarn
- run:
name: Build all packages with lerna
command: 'yarn build --skip-nx-cache'
command: 'yarn build --since master'
- persist_to_workspace:
root: *working_directory
paths:
Expand Down Expand Up @@ -108,6 +108,7 @@ jobs:
name: 'Test unit'
command: |
yarn test \
--since master \
--ignore @requestnetwork/request-client.js \
--ignore @requestnetwork/smart-contracts \
--ignore @requestnetwork/payment-detection \
Expand Down Expand Up @@ -156,6 +157,9 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- run:
name: 'Build smart-contracts'
command: 'yarn build --scope @requestnetwork/smart-contracts'
- run:
name: 'Deploy test contract from smart-contracts'
command: 'yarn deploy:contracts'
Expand All @@ -164,6 +168,7 @@ jobs:
name: 'Test request-client.js, smart-contracts, payment-detection and payment-processor'
command: |
yarn test \
--since master \
--scope @requestnetwork/request-client.js \
--scope @requestnetwork/smart-contracts \
--scope @requestnetwork/payment-detection \
Expand All @@ -188,6 +193,9 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- run:
name: 'Build smart-contracts'
command: 'yarn build --scope @requestnetwork/smart-contracts'
- run:
name: 'Deploy test contract from smart-contracts'
command: 'yarn deploy:contracts'
Expand All @@ -201,6 +209,7 @@ jobs:
name: 'Test integration-test'
command: |
yarn test \
--since master \
--scope @requestnetwork/integration-test
- store_test_results:
path: packages/integration-test/reports/
Expand Down Expand Up @@ -271,6 +280,9 @@ jobs:
- run:
name: 'Authenticate with registry'
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
- run:
name: 'Build all packages with lerna'
command: 'yarn build --skip-nx-cache'
- run:
name: 'Publish'
command: |
Expand Down