From 24af7f48c451379a46427a0569bfb74ebe3fac41 Mon Sep 17 00:00:00 2001 From: Dmytro Tkachenko Date: Tue, 22 Oct 2024 20:31:34 +0300 Subject: [PATCH] Actions --- .gitea/workflows/pipeline.yaml | 15 +++++++++++++++ .jenkins/scripts/build.sh | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitea/workflows/pipeline.yaml create mode 100644 .jenkins/scripts/build.sh 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