diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..b242572ef --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "githubPullRequests.ignoredPullRequestBranches": [ + "main" + ] +} \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..3b2223d36 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,60 @@ +pipeline{ + agent any + + stages{ + stage('Build '){ + agent{ + docker { + image 'node:18-alpine' + reuseNode true + } + } + steps{ + sh ''' + ls -al + node --version + npm --version + npm ci + npm run build + ls -al + ''' + } + } + stage('Test'){ + agent{ + docker { + image 'node:18-alpine' + reuseNode true + } + } + steps{ + sh ''' + test -f build/index.html + npm test + ''' + } + } + stage('E2E'){ + agent{ + docker { + image 'mcr.microsoft.com/playwright:v1.49.0-noble' + reuseNode true + } + } + steps{ + sh ''' + npm install serve + node_module/.bin/serve -s build & + sleep 10 + npx playwright test + ''' + } + } + } + + post{ + always{ + junit 'test-results/junit.xml' + } + } + } \ No newline at end of file