mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-21 20:24:42 +00:00
ci: fix wba flaky test
Sometimes the GHA secret isn't dump in file correctly. So this commit inject the value directly to the command line
This commit is contained in:
11
.github/workflows/e2e-test.yml
vendored
11
.github/workflows/e2e-test.yml
vendored
@@ -194,8 +194,6 @@ jobs:
|
|||||||
repository: 'lightpanda-io/demo'
|
repository: 'lightpanda-io/demo'
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- run: echo "${{ secrets.WBA_PRIVATE_KEY_PEM }}" > private_key.pem
|
|
||||||
|
|
||||||
- name: download artifact
|
- name: download artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -204,17 +202,22 @@ jobs:
|
|||||||
- run: chmod a+x ./lightpanda
|
- run: chmod a+x ./lightpanda
|
||||||
|
|
||||||
- name: run wba test
|
- name: run wba test
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
node webbotauth/validator.js &
|
node webbotauth/validator.js &
|
||||||
VALIDATOR_PID=$!
|
VALIDATOR_PID=$!
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
./lightpanda fetch http://127.0.0.1:8989/ \
|
exec 3<<< "${{ secrets.WBA_PRIVATE_KEY_PEM }}"
|
||||||
--web_bot_auth_key_file private_key.pem \
|
|
||||||
|
./lightpanda fetch --dump http://127.0.0.1:8989/ \
|
||||||
|
--web_bot_auth_key_file /proc/self/fd/3 \
|
||||||
--web_bot_auth_keyid ${{ vars.WBA_KEY_ID }} \
|
--web_bot_auth_keyid ${{ vars.WBA_KEY_ID }} \
|
||||||
--web_bot_auth_domain ${{ vars.WBA_DOMAIN }}
|
--web_bot_auth_domain ${{ vars.WBA_DOMAIN }}
|
||||||
|
|
||||||
wait $VALIDATOR_PID
|
wait $VALIDATOR_PID
|
||||||
|
exec 3>&-
|
||||||
|
|
||||||
cdp-and-hyperfine-bench:
|
cdp-and-hyperfine-bench:
|
||||||
name: cdp-and-hyperfine-bench
|
name: cdp-and-hyperfine-bench
|
||||||
|
|||||||
Reference in New Issue
Block a user