forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5cd629
commit 96e7850
Showing
4 changed files
with
174 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# This workflow runs every night and tests various releases of Node.js | ||
# (latest nightly, current, and two latest LTS release lines) against the | ||
# `epochs/weekly` branch of WPT. | ||
|
||
name: Weekly WPT roller | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# This is 20 minutes after `epochs/weekly` branch is triggered to be created | ||
# in WPT repo, every Monday. | ||
# https://github.com/web-platform-tests/wpt/blob/master/.github/workflows/epochs.yml | ||
- cron: 30 0 * * 1 | ||
|
||
env: | ||
PYTHON_VERSION: '3.11' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update-wpt: | ||
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
persist-credentials: false | ||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Environment Information | ||
run: npx envinfo | ||
|
||
- name: Set env.WPT_REVISION | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: echo "WPT_REVISION=$(gh api /repos/web-platform-tests/wpt/branches/epochs/weekly --jq '.commit.sha')" >> $GITHUB_ENV | ||
- name: Rolling update wpt fixtures | ||
run: ./tools/dep_updaters/update-wpt.sh | ||
|
||
- name: Build | ||
run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn" | ||
- name: Update wpt status.json | ||
run: make test-wpt-status-update | ||
|
||
- uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 | ||
# Creates a PR or update the Action's existing PR, or | ||
# no-op if the base branch is already up-to-date. | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} | ||
with: | ||
author: Node.js GitHub Bot <github-bot@iojs.org> | ||
body: This is an automated patch update of wpt to ${{ env.WPT_REVISION }}. | ||
branch: actions/update-wpt # Custom branch *just* for this Action. | ||
labels: test | ||
title: 'deps: update wpt to ${{ env.WPT_REVISION }}' | ||
update-pull-request-title-and-body: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
set -e | ||
# Shell script to update wpt test fixtures in the source tree to the most recent version. | ||
|
||
BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd) | ||
|
||
cd "$BASE_DIR" | ||
jq -r 'keys[]' "$BASE_DIR/test/fixtures/wpt/versions.json" | \ | ||
xargs -L 1 git node wpt --commit "$WPT_REVISION" | ||