Skip to content

chore: add nightly tests #6

chore: add nightly tests

chore: add nightly tests #6

Workflow file for this run

name: Nightly tests
on:
- workflow_dispatch
- schedule:
- cron: "55 18 * * *"
jobs:
test:
if: github.repository == 'mweberxyz/nodejs-undici'
strategy:
fail-fast: false
max-parallel: 0
matrix:
runs-on:
- ubuntu-latest
- windows-latest
- macos-latest
uses: ./.github/workflows/test.yml
with:
node-version: 22-nightly
runs-on: ${{ matrix.runs-on }}
secrets: inherit
create-issue:
if: failure()
needs: test
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create issue
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const url = "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: `Nightly tests failed - ${new Date().toISOString().substring(0, 10)}`,
body: `Refer to ${url} for details`
});