Skip to content

Commit

Permalink
[framework] build: add Jenkinsfile for PR automation
Browse files Browse the repository at this point in the history
  • Loading branch information
nsonanh committed Jan 12, 2023
1 parent 3b16b9e commit 1831134
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pipeline {
agent any
stages {
stage('Download dependencies') {
steps {
echo 'Downloading dependencies...'
sh 'npm install'
}
}

stage('Lerna bootstrap') {
steps {
echo 'Bootstrapping lerna...'
sh './node_modules/.bin/lerna bootstrap'
}
}

stage('Run linter checks') {
steps {
echo 'Running linter checks...'
sh 'npm run lint'
}
}

stage('Build software') {
steps {
echo 'Running compiler...'
sh 'npm run build'
}
}

stage('Run unit tests') {
steps {
echo 'Running unit tests...'
sh 'npm run test'
}
}
}
}
32 changes: 32 additions & 0 deletions libraries/contracts/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any
stages {
stage('Download dependencies') {
steps {
echo 'Downloading dependencies...'
sh 'npm install'
}
}

stage('Run linter checks') {
steps {
echo 'Running linter checks...'
sh 'npm run lint'
}
}

stage('Build software') {
steps {
echo 'Running compiler...'
sh 'npm run build'
}
}

stage('Run unit tests') {
steps {
echo 'Running unit tests...'
sh 'npm run test'
}
}
}
}
32 changes: 32 additions & 0 deletions libraries/ui-components/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any
stages {
stage('Download dependencies') {
steps {
echo 'Downloading dependencies...'
sh 'npm install'
}
}

stage('Run linter checks') {
steps {
echo 'Running linter checks...'
sh 'npm run lint'
}
}

stage('Build software') {
steps {
echo 'Running compiler...'
sh 'npm run build'
}
}

stage('Run unit tests') {
steps {
echo 'Running unit tests...'
sh 'npm run test'
}
}
}
}
32 changes: 32 additions & 0 deletions runtime/backend/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any
stages {
stage('Download dependencies') {
steps {
echo 'Downloading dependencies...'
sh 'npm install'
}
}

stage('Run linter checks') {
steps {
echo 'Running linter checks...'
sh 'npm run lint'
}
}

stage('Build software') {
steps {
echo 'Running compiler...'
sh 'npm run build'
}
}

stage('Run unit tests') {
steps {
echo 'Running unit tests...'
sh 'npm run test'
}
}
}
}
32 changes: 32 additions & 0 deletions runtime/dapp-frontend-vue/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any
stages {
stage('Download dependencies') {
steps {
echo 'Downloading dependencies...'
sh 'npm install'
}
}

stage('Run linter checks') {
steps {
echo 'Running linter checks...'
sh 'npm run lint'
}
}

stage('Build software') {
steps {
echo 'Running compiler...'
sh 'npm run build'
}
}

stage('Run unit tests') {
steps {
echo 'Running unit tests...'
sh 'npm run test'
}
}
}
}

0 comments on commit 1831134

Please sign in to comment.