Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
🔨 Update Jenkinsfile to use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Apr 4, 2024
1 parent ec02315 commit 0f60065
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ _Before_ submitting a pull request, please make sure the following is done:
Airbnb with the
[lisk extension](https://github.com/LiskHQ/eslint-config-lisk-base).
1. Format your code using [Prettier](https://prettier.io/). This can be performed manually
with `npm run format`.
with `yarn format`.
1. Submit a pull request via GitHub. Include issue numbers in the PR title, at
the end with: `Description - Closes #IssueNumber`.
1. Check that Jenkins CI tests pass (pull request turns green). First time
Expand Down
2 changes: 1 addition & 1 deletion jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pipeline {
steps {
nvm(readFile(".nvmrc").trim()) {
sh '''
npm run format
yarn format
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
echo "All files formatted"
else
Expand Down
14 changes: 7 additions & 7 deletions jenkins/Jenkinsfile.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,17 @@ pipeline {
script { echoBanner(STAGE_NAME) }
dir('lisk-service') {
nvm(readFile('.nvmrc').trim()) {
dir('./services/blockchain-app-registry') { sh "npm run test:functional" }
dir('./services/blockchain-app-registry') { sh "yarn test:functional" }
dir('./services/blockchain-indexer') {
sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' SERVICE_INDEXER_CACHE_REDIS='redis://lisk:password@127.0.0.1:${REDIS_PORT}/2' SERVICE_INDEXER_REDIS_VOLATILE='redis://lisk:password@127.0.0.1:${REDIS_PORT}/3' SERVICE_MESSAGE_QUEUE_REDIS='redis://lisk:password@127.0.0.1:${REDIS_PORT}/4' npm run test:functional"
sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' SERVICE_INDEXER_CACHE_REDIS='redis://lisk:password@127.0.0.1:${REDIS_PORT}/2' SERVICE_INDEXER_REDIS_VOLATILE='redis://lisk:password@127.0.0.1:${REDIS_PORT}/3' SERVICE_MESSAGE_QUEUE_REDIS='redis://lisk:password@127.0.0.1:${REDIS_PORT}/4' yarn test:functional"
}
dir('./services/fee-estimator') { sh "npm run test:functional" }
dir('./services/fee-estimator') { sh "yarn test:functional" }
dir('./services/market') {
sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' SERVICE_MARKET_REDIS='redis://lisk:password@127.0.0.1:${REDIS_PORT}/10' npm run test:functional"
sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' SERVICE_MARKET_REDIS='redis://lisk:password@127.0.0.1:${REDIS_PORT}/10' yarn test:functional"
}
dir('./services/transaction-statistics') { sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' npm run test:functional" }
dir('./framework') { sh "REDIS_URL='redis://lisk:password@127.0.0.1:${REDIS_PORT}/0' npm run test:functional" }
dir('./services/blockchain-connector') { sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' npm run test:functional" }
dir('./services/transaction-statistics') { sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' yarn test:functional" }
dir('./framework') { sh "REDIS_URL='redis://lisk:password@127.0.0.1:${REDIS_PORT}/0' yarn test:functional" }
dir('./services/blockchain-connector') { sh "SERVICE_BROKER='nats://127.0.0.1:${SERVICE_BROKER_PORT}' yarn test:functional" }
}
}
}
Expand Down

0 comments on commit 0f60065

Please sign in to comment.