fix (jenkins): check of new frontend

This commit is contained in:
MickaelK
2024-08-15 01:17:38 +10:00
parent d6613c4452
commit bbd01070fb

9
Jenkinsfile vendored
View File

@ -50,11 +50,18 @@ pipeline {
sh "cat access.log | grep -vz \"WARN\"" sh "cat access.log | grep -vz \"WARN\""
sh "cat access.log | grep -vz \"ERR\"" sh "cat access.log | grep -vz \"ERR\""
} }
// test frontend // test frontend old
docker.image("node:14").inside("--user=root") { docker.image("node:14").inside("--user=root") {
sh "cd ./test/unit_js && npm install" sh "cd ./test/unit_js && npm install"
sh "cd ./test/unit_js && npm test" sh "cd ./test/unit_js && npm test"
} }
// test frontend new
docker.image("node:20").inside("--user=root") {
sh "cd public && npm install"
// sh "cd public && npm run lint"
sh "cd public && npm run check"
// sh "cd public && npm run test"
}
// test backend // test backend
docker.image("golang:1.21-bookworm").inside("--user=root") { docker.image("golang:1.21-bookworm").inside("--user=root") {
sh "cp ./test/assets/* /tmp/" sh "cp ./test/assets/* /tmp/"