tools: upload daily WPT Report to both staging and production
PR-URL: https://github.com/nodejs/node/pull/46803 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
31e046b9dd
commit
b489ae3c52
14
.github/workflows/daily-wpt-fyi.yml
vendored
14
.github/workflows/daily-wpt-fyi.yml
vendored
@ -96,16 +96,18 @@ jobs:
|
||||
if-no-files-found: warn
|
||||
- name: Upload WPT Report to wpt.fyi API
|
||||
env:
|
||||
WPT_FYI_ENDPOINT: ${{ vars.WPT_FYI_ENDPOINT }}
|
||||
WPT_FYI_USERNAME: ${{ vars.WPT_FYI_USERNAME }}
|
||||
WPT_FYI_PASSWORD: ${{ secrets.WPT_FYI_PASSWORD }}
|
||||
run: |
|
||||
if [ -e out/wpt/wptreport.json ]; then
|
||||
cd out/wpt
|
||||
gzip wptreport.json
|
||||
curl \
|
||||
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
|
||||
-F "result_file=@wptreport.json.gz" \
|
||||
-F "labels=master" \
|
||||
$WPT_FYI_ENDPOINT
|
||||
for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload"
|
||||
do
|
||||
curl \
|
||||
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
|
||||
-F "result_file=@wptreport.json.gz" \
|
||||
-F "labels=master" \
|
||||
$WPT_FYI_ENDPOINT
|
||||
done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user