Skip to content

Commit 2055ca9

Browse files
committed
tools: remove latest nightly from daily wpt.fyi job
1 parent e28656a commit 2055ca9

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/daily-wpt-fyi.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# This workflow runs every night and tests various releases of Node.js
2-
# (latest nightly, current, and two latest LTS release lines) against the
3-
# `epochs/daily` branch of WPT.
1+
# This workflow runs every night and tests non-EOL releases of Node.js
2+
# against the `epochs/daily` branch of WPT.
43

54
name: Daily WPT report
65

@@ -27,7 +26,7 @@ jobs:
2726
steps:
2827
- id: query
2928
run: |
30-
matrix=$(curl -s https://raw.githubusercontent.com/nodejs/Release/refs/heads/main/schedule.json | jq -c --arg now "$(date +%Y-%m-%d)" '[with_entries(select(.value.end > $now and .value.start < $now)) | keys[] | ltrimstr("v") | tonumber] + ["latest-nightly"]')
29+
matrix=$(curl -s https://raw.githubusercontent.com/nodejs/Release/refs/heads/main/schedule.json | jq -c --arg now "$(date +%Y-%m-%d)" '[with_entries(select(.value.end > $now and .value.start < $now)) | keys[] | ltrimstr("v") | tonumber]')
3130
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
3231
report:
3332
needs:
@@ -47,27 +46,17 @@ jobs:
4746
run: npx envinfo
4847

4948
# install a version and checkout
50-
- name: Get latest nightly
51-
if: matrix.node-version == 'latest-nightly'
52-
run: echo "NIGHTLY=$(curl -s https://nodejs.org/download/nightly/index.json | jq -r '[.[] | select(.files[] | contains("linux-x64"))][0].version')" >> $GITHUB_ENV
5349
- name: Install Node.js
5450
id: setup-node
5551
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
5652
with:
57-
node-version: ${{ env.NIGHTLY || matrix.node-version }}
53+
node-version: ${{ matrix.node-version }}
5854
check-latest: true
59-
- name: Get nightly ref
60-
if: contains(matrix.node-version, 'nightly')
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
run: |
64-
SHORT_SHA=$(node -p 'process.version.split(/-nightly\d{8}/)[1]')
65-
echo "NIGHTLY_REF=$(gh api /repos/nodejs/node/commits/$SHORT_SHA --jq '.sha')" >> $GITHUB_ENV
6655
- name: Checkout ${{ steps.setup-node.outputs.node-version }}
6756
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
6857
with:
6958
persist-credentials: false
70-
ref: ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }}
59+
ref: ${{ steps.setup-node.outputs.node-version }}
7160
- name: Set env.NODE
7261
run: echo "NODE=$(which node)" >> $GITHUB_ENV
7362
- name: Set env.WPT_REVISION

0 commit comments

Comments
 (0)