diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml new file mode 100644 index 0000000..2f32f85 --- /dev/null +++ b/.gitea/workflows/pipeline.yaml @@ -0,0 +1,15 @@ + pipeline { + agent any + stages { + stage('Build') { + steps { + sh 'npm install' + } + } + stage('Test') { + steps { + sh './jenkins/scripts/test.sh' + } + } + } + } \ No newline at end of file diff --git a/.jenkins/scripts/build.sh b/.jenkins/scripts/build.sh new file mode 100644 index 0000000..52b59e1 --- /dev/null +++ b/.jenkins/scripts/build.sh @@ -0,0 +1,15 @@ +pipeline { + agent any + stages { + stage('Build') { + steps { + sh 'npm install' + } + } + stage('Test') { + steps { + sh './jenkins/scripts/test.sh' + } + } + } +} \ No newline at end of file