Skip to content

Node.js Nightly

Node.js Nightly #65

name: Node.js Nightly
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * *"
permissions:
contents: read
jobs:
test:
name: Test with Node.js ${{ matrix.node-version }} on ${{ matrix.runs-on }}
if: github.repository == 'nodejs/undici'
strategy:
fail-fast: false
max-parallel: 0
matrix:
node-version: ['25-nightly']
runs-on: [ubuntu-latest, windows-latest, macos-latest]
uses: ./.github/workflows/nodejs.yml
with:
node-version: ${{ matrix.node-version }}
runs-on: ${{ matrix.runs-on }}
secrets: inherit
autobahn:
if: github.repository == 'nodejs/undici'
uses: ./.github/workflows/autobahn.yml
with:
node-version: '25-nightly'
secrets: inherit
test-shared-builtin:
if: github.repository == 'nodejs/undici'
uses: ./.github/workflows/nodejs-shared.yml
with:
node-version: '25'
node-download-server-path: '/nightly'
report-failure:
if: ${{ always() && (needs.test.result == 'failure' || needs.test-shared-builtin.result == 'failure' || needs.autobahn.result == 'failure') }}
needs:
- test
- test-shared-builtin
- autobahn
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create or update issue
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const ISSUE_TITLE = "Nightly tests are failing"
const actionRunUrl = "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
const issueContext = {
owner: context.repo.owner,
repo: context.repo.repo
}
let issue = (await github.rest.issues.listForRepo({
state: "open",
creator: "github-actions[bot]",
...issueContext
})).data.find((issue) => issue.title === ISSUE_TITLE)
if(!issue) {
issue = (await github.rest.issues.create({
title: ISSUE_TITLE,
body: `Tests against nightly failed, see: ${actionRunUrl}`,
...issueContext
})).data
}