mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
tools: re-enable undici WPTs in daily wpt.fyi job
Refs: https://github.com/nodejs/node/pull/60444 Closes: https://github.com/nodejs/undici/issues/4644 Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: https://github.com/nodejs/node/pull/62677 Fixes: https://github.com/nodejs/undici/issues/4644 Refs: https://github.com/nodejs/node/pull/60444 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
1bc6394601
commit
2f5cbec94d
3 files changed
+135
No files matched your search
@@ -96,6 +96,48 @@ jobs:
|
||||
echo "WPT_REPORT=$(pwd)/out/wpt/wptreport.json" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
# undici WPT Runner
|
||||
- name: Set env.UNDICI_VERSION
|
||||
if: ${{ env.WPT_REPORT != '' }}
|
||||
run: |
|
||||
UNDICI_VERSION=$(jq -r '.version' < deps/undici/src/package.json)
|
||||
echo "UNDICI_VERSION=v$UNDICI_VERSION" >> $GITHUB_ENV
|
||||
if [ "${UNDICI_VERSION%%.*}" -ge 7 ]; then
|
||||
echo "UNDICI_WPT=current" >> $GITHUB_ENV
|
||||
else
|
||||
echo "UNDICI_WPT=legacy" >> $GITHUB_ENV
|
||||
fi
|
||||
# Checkout composite actions from the default branch since the
|
||||
# version-specific checkout above overwrites .github/actions/
|
||||
- name: Checkout undici WPT actions
|
||||
if: ${{ env.WPT_REPORT != '' }}
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/undici-wpt-current
|
||||
.github/actions/undici-wpt-legacy
|
||||
sparse-checkout-cone-mode: false
|
||||
persist-credentials: false
|
||||
path: _wpt_actions
|
||||
clean: false
|
||||
- name: Place undici WPT actions
|
||||
if: ${{ env.WPT_REPORT != '' }}
|
||||
run: |
|
||||
mkdir -p .github/actions
|
||||
cp -r _wpt_actions/.github/actions/undici-wpt-* .github/actions/
|
||||
- name: Run undici WPT (current)
|
||||
if: ${{ env.UNDICI_WPT == 'current' }}
|
||||
uses: ./.github/actions/undici-wpt-current
|
||||
with:
|
||||
undici-version: ${{ env.UNDICI_VERSION }}
|
||||
wpt-report: ${{ env.WPT_REPORT }}
|
||||
- name: Run undici WPT (legacy)
|
||||
if: ${{ env.UNDICI_WPT == 'legacy' }}
|
||||
uses: ./.github/actions/undici-wpt-legacy
|
||||
with:
|
||||
undici-version: ${{ env.UNDICI_VERSION }}
|
||||
wpt-report: ${{ env.WPT_REPORT }}
|
||||
|
||||
# Upload artifacts
|
||||
- name: Clone report for upload
|
||||
if: ${{ env.WPT_REPORT != '' }}
|
||||
|
||||
Reference in new issue
Block a user