-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move build output to 'dist' folder - Cleanup vite.config.ts - Add miner-test-project - Change doc to use this project - Add playwright test
- Loading branch information
Showing
67 changed files
with
2,148 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
mvn --batch-mode versions:set-property versions:commit -f playwright/glsp-test-project/pom.xml -Dproperty=project.build.plugin.version -DnewVersion=${2} -DallowSnapshots=true | ||
mvn --batch-mode versions:set-property versions:commit -f tests/miner-test-project/pom.xml -Dproperty=project.build.plugin.version -DnewVersion=${2} -DallowSnapshots=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM node:22.14-bookworm | ||
ENV CI=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM mcr.microsoft.com/playwright:v1.50.1-jammy | ||
|
||
RUN apt-get update &&\ | ||
apt-get install software-properties-common -y &&\ | ||
apt-add-repository universe -y &&\ | ||
apt-get update &&\ | ||
apt-get install openjdk-21-jdk -y | ||
|
||
ARG MAVEN_VERSION=3.9.8 | ||
ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries | ||
|
||
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ | ||
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ | ||
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \ | ||
&& rm -f /tmp/apache-maven.tar.gz \ | ||
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
pipeline { | ||
agent any | ||
|
||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '5')) | ||
} | ||
|
||
triggers { | ||
cron '@midnight' | ||
} | ||
|
||
parameters { | ||
string(name: 'engineSource', defaultValue: 'https://product.ivyteam.io/', description: 'Engine page url') | ||
} | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
script { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
docker.build('node', '-f build/Dockerfile.node .').inside { | ||
// sh 'npm run update:axonivy:next' | ||
sh 'npm run ci' | ||
} | ||
} | ||
archiveArtifacts artifacts: 'dist', allowEmptyArchive: true | ||
|
||
withChecks('ESLint') { | ||
recordIssues enabledForFailure: true, publishAllIssues: true, aggregatingResults: true, tools: [esLint(pattern: 'eslint.xml')], qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]] | ||
} | ||
} | ||
} | ||
} | ||
stage('Integration Tests') { | ||
steps { | ||
script { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { | ||
docker.build('node-webtest', '-f build/Dockerfile.playwright .').inside { | ||
dir ('tests/miner-test-project') { | ||
maven cmd: "-ntp verify -Dengine.page.url=${params.engineSource}" | ||
} | ||
} | ||
} | ||
archiveArtifacts artifacts: 'test-results/**', allowEmptyArchive: true | ||
withChecks('Integration WebTest') { | ||
junit testDataPublishers: [[$class: 'StabilityTestDataPublisher']], testResults: 'report.xml' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
discoverGitReferenceBuild() | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { devices, defineConfig } from '@playwright/test'; | ||
|
||
export default defineConfig({ | ||
timeout: 1000 * (process.env.CI ? 60 : 30), | ||
fullyParallel: true, | ||
forbidOnly: !!process.env.CI, | ||
retries: process.env.CI ? 1 : 0, | ||
reporter: process.env.CI ? [['./tests/custom-reporter.ts'], ['junit', { outputFile: 'report.xml' }], ['list']] : 'html', | ||
use: { | ||
actionTimeout: 0, | ||
baseURL: process.env.CI ? 'http://localhost:4173' : 'http://localhost:3000', | ||
trace: 'retain-on-failure', | ||
headless: process.env.CI ? true : false | ||
}, | ||
webServer: { | ||
command: `npm run ${process.env.CI ? 'serve' : 'dev'}`, | ||
url: process.env.CI ? 'http://localhost:4173' : 'http://localhost:3000', | ||
reuseExistingServer: !process.env.CI | ||
}, | ||
projects: [{ name: 'chrome', use: { ...devices['Desktop Chrome'] }, testDir: './tests/viewer' }] | ||
}); |
Oops, something went wrong.