mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Add trigger to call Playwright test pipeline via webhook.
This commit is contained in:
parent
497b02002e
commit
c97c5bcbcf
1 changed files with 21 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ default:
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- trigger-playwright-tests
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
@ -29,3 +30,23 @@ test:
|
||||||
- deno-test.xml
|
- deno-test.xml
|
||||||
reports:
|
reports:
|
||||||
junit: deno-test.xml
|
junit: deno-test.xml
|
||||||
|
|
||||||
|
trigger-playwright-tests:
|
||||||
|
stage: trigger-playwright-tests
|
||||||
|
image: ubuntu:latest
|
||||||
|
before_script:
|
||||||
|
- apt update && apt install -y curl
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
curl --request POST \
|
||||||
|
--form "token=${PLAYWRIGHT_TRIGGER_TOKEN}" \
|
||||||
|
--form "ref=main" \
|
||||||
|
--form "merge_requests_events=true" \
|
||||||
|
--form "variables[CI_PROJECT_ID]=${CI_PROJECT_ID}" \
|
||||||
|
--form "variables[CI_MERGE_REQUEST_IID]=${CI_MERGE_REQUEST_IID}" \
|
||||||
|
--form "variables[CI_COMMIT_SHA]=${CI_COMMIT_SHA}" \
|
||||||
|
--form "variables[CI_COMMIT_SHORT_SHA]=${CI_COMMIT_SHORT_SHA}" \
|
||||||
|
--form "variables[CI_COMMIT_REF_NAME]=${CI_COMMIT_REF_NAME}" \
|
||||||
|
"https://gitlab.com/api/v4/projects/67335996/trigger/pipeline"
|
||||||
|
only:
|
||||||
|
- merge_requests
|
||||||
Loading…
Add table
Reference in a new issue