Skip to content

Commit 0b41de9

Browse files
committed
replace nodejs-ci image use image based on ubuntu 24
1 parent 6fe42f7 commit 0b41de9

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

.woodpecker.star

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ MINIO_MC = "minio/mc:RELEASE.2021-10-07T04-19-58Z"
99
OC_CI_BAZEL_BUILDIFIER = "owncloudci/bazel-buildifier"
1010
OC_CI_DRONE_ANSIBLE = "owncloudci/drone-ansible:latest"
1111
OC_CI_GOLANG = "quay.io/opencloudeu/golang-ci:1.25"
12-
OC_CI_NODEJS = "owncloudci/nodejs:22"
12+
OC_CI_NODEJS = "scharfvi/nodeci:24"
13+
OC_CI_NODEJS_ALPINE = "scharfvi/nodeci-alpine:24"
1314
OC_CI_WAIT_FOR = "owncloudci/wait-for:latest"
1415
ONLYOFFICE_DOCUMENT_SERVER = "onlyoffice/documentserver:8.1.3"
1516
PLUGINS_GH_PAGES = "plugins/gh-pages:1"
@@ -501,7 +502,7 @@ def unitTests(ctx):
501502
[
502503
{
503504
"name": "unit-tests",
504-
"image": OC_CI_NODEJS,
505+
"image": OC_CI_NODEJS_ALPINE,
505506
"commands": [
506507
"pnpm test:unit --coverage",
507508
],
@@ -591,7 +592,7 @@ def e2eTests(ctx):
591592

592593
steps = restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + \
593594
installPnpm() + \
594-
restoreBrowsersCache() + \
595+
restoreBrowsersCache(browser_name) + \
595596
restoreBuildArtifactCache(ctx, "web-dist", "dist") + \
596597
restoreOpenCloudCache()
597598

@@ -619,14 +620,10 @@ def e2eTests(ctx):
619620
steps += (tikaService() if params["tikaNeeded"] else []) + \
620621
openCloudService(params["extraServerEnvironment"])
621622

622-
if browser_name == "firefox":
623+
if browser_name == "firefox" or browser_name == "webkit":
623624
environment["FAIL_ON_UNCAUGHT_CONSOLE_ERR"] = "False"
624625

625-
if browser_name == "webkit":
626-
environment["FAIL_ON_UNCAUGHT_CONSOLE_ERR"] = "False"
627-
command = "pnpm playwright install-deps webkit && cd tests/e2e && bash run-e2e.sh "
628-
else:
629-
command = "cd tests/e2e && bash run-e2e.sh "
626+
command = "cd tests/e2e && bash run-e2e.sh "
630627

631628
if "suites" in matrix:
632629
command += "--suites %s" % ",".join(params["suites"])
@@ -637,7 +634,7 @@ def e2eTests(ctx):
637634
return []
638635

639636
if "mobile-view" in suite:
640-
command = "pnpm playwright install-deps webkit && pnpm test:e2e:mobile-parallel"
637+
command = "pnpm test:e2e:mobile-parallel"
641638
pipeline_name = "e2e-tests-%s" % suite
642639
else:
643640
pipeline_name = "e2e-tests-%s-%s" % (suite, browser_name)
@@ -742,7 +739,7 @@ def installBrowsers():
742739
"commands": [
743740
". ./.woodpecker.env",
744741
"if $BROWSER_CACHE_FOUND; then exit 0; fi",
745-
"pnpm exec playwright install --with-deps",
742+
"pnpm exec playwright install",
746743
"pnpm exec playwright install --list",
747744
"tar -czvf %s .playwright" % dir["playwrightBrowsersArchive"],
748745
],
@@ -751,7 +748,7 @@ def installBrowsers():
751748
def lint():
752749
return [{
753750
"name": "lint",
754-
"image": OC_CI_NODEJS,
751+
"image": OC_CI_NODEJS_ALPINE,
755752
"commands": [
756753
"pnpm lint",
757754
],
@@ -761,14 +758,14 @@ def formatCheck():
761758
return [
762759
{
763760
"name": "format-check",
764-
"image": OC_CI_NODEJS,
761+
"image": OC_CI_NODEJS_ALPINE,
765762
"commands": [
766763
"pnpm format:check",
767764
],
768765
},
769766
{
770767
"name": "show-diff",
771-
"image": OC_CI_NODEJS,
768+
"image": OC_CI_NODEJS_ALPINE,
772769
"commands": [
773770
"pnpm format:write",
774771
"git diff",
@@ -1563,7 +1560,7 @@ def keycloakService():
15631560
def e2eTestsOnKeycloak(ctx):
15641561
steps = restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + \
15651562
installPnpm() + \
1566-
restoreBrowsersCache() + \
1563+
restoreBrowsersCache("chromium") + \
15671564
ldapService() + \
15681565
keycloakService() + \
15691566
restoreBuildArtifactCache(ctx, "web-dist", "dist") + \
@@ -1686,7 +1683,7 @@ def checkBrowsersCache():
16861683
],
16871684
}]
16881685

1689-
def restoreBrowsersCache():
1686+
def restoreBrowsersCache(browser):
16901687
return [
16911688
{
16921689
"name": "restore-browsers-cache",

tests/e2e/run-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
SCRIPT_PATH=$(dirname "$0")
4-
SCRIPT_PATH=$(cd "${SCRIPT_PATH_REL}" && pwd) # absolute path
4+
SCRIPT_PATH=$(cd "${SCRIPT_PATH_REL}" && pwd)
55
FEATURES_DIR="${SCRIPT_PATH}/cucumber/features"
66
PROJECT_ROOT=$(cd "$SCRIPT_PATH/../../" && pwd)
77
SCRIPT_PATH_REL=${SCRIPT_PATH//"$PROJECT_ROOT/"/}

0 commit comments

Comments
 (0)