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 11, 2023
1 parent 3b16b9e commit d772bd2
Showing 1 changed file with 39 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'
}
}
}
}

0 comments on commit d772bd2

Please sign in to comment.