Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[full-ci]chore: bump web to v9.0.0-alpha.3 #8736

Merged
merged 6 commits into from
Mar 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci(e2e): fix e2e run command
  • Loading branch information
saw-jan committed Mar 26, 2024
commit d257b4cce4e85b6d6d580aef4b407acb58d1eb0a
12 changes: 7 additions & 5 deletions .drone.star
Original file line number Diff line number Diff line change
@@ -235,6 +235,7 @@ def getPipelineNames(pipelines = []):
return names

def main(ctx):
return e2eTestPipeline(ctx)
"""main is the entrypoint for drone

Args:
@@ -1223,7 +1224,7 @@ def e2eTestPipeline(ctx):

e2e_args = ""
if params["totalParts"] > 0:
e2e_args = "--total-parts %s" % params["totalParts"]
e2e_args = "--total-parts %d" % params["totalParts"]
elif params["suites"]:
e2e_args = "--suites %s" % ",".join(params["suites"])

@@ -1250,7 +1251,7 @@ def e2eTestPipeline(ctx):
"LOCAL_UPLOAD_DIR": "/uploads",
},
"commands": [
"cd %s" % dirs["web"],
"cd %s/tests/e2e" % dirs["web"],
],
}

@@ -1261,8 +1262,8 @@ def e2eTestPipeline(ctx):
for index in range(params["totalParts"]):
run_part = index + 1
step_e2e["commands"] = [
"cd %s" % dirs["web"],
"pnpm test:e2e:cucumber %s --run-part %s" % (e2e_args, run_part),
"cd %s/tests/e2e" % dirs["web"],
"bash run-e2e.sh %s --run-part %d" % (e2e_args, run_part),
]
pipelines.append({
"kind": "pipeline",
@@ -1273,8 +1274,9 @@ def e2eTestPipeline(ctx):
"trigger": e2e_trigger,
"volumes": e2e_volumes,
})
print(step_e2e["commands"])
else:
step_e2e["commands"].append("pnpm test:e2e:cucumber %s" % e2e_args)
step_e2e["commands"].append("bash run-e2e.sh %s" % e2e_args)
pipelines.append({
"kind": "pipeline",
"type": "docker",