mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 04:50:14 +08:00
fix (jenkins): check of new frontend
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -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/"
|
||||||
|
|||||||
Reference in New Issue
Block a user