Skip to content

add a nightly node compatibility validation testing the app on a set … #8

add a nightly node compatibility validation testing the app on a set …

add a nightly node compatibility validation testing the app on a set … #8

# in order to subscribe to nighlies fails subscribe for updates on PR:
# ---> https://github.com/facebook/metro/pull/1314 <---
#
# this is a bit of a workaround tackling the lack of an organic way
# to notify certain people when this workflow fails:
# https://github.com/orgs/community/discussions/18039
name: facebook/metro/nightly-node-compatibility-validation
on:
schedule:
# Everyday at at 5:00 UTC (22:00 USA West Coast, 06:00 London)
- cron: '0 5 * * *'
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
runs-on: ['ubuntu-latest']
# https://github.com/nodejs/release#release-schedule
node-version: [
'18.0', # minimum supported
'lts/-1', # pre-latest lts
'lts/*', # latest lts
'current' # newest
]
uses: ./.github/workflows/test.yml
with:
node-version: ${{ matrix.node-version }}
runs-on: ${{ matrix.runs-on }}
comment-on-pr-for-failures:
runs-on: ubuntu-latest
needs: [test]
if: ${{ always() && needs.test.result == 'failure' }}
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
// see https://github.com/facebook/metro/pull/1314
issue_number: 1314,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'A nightly test failed in `${{ github.workflow }}`!\nPlease address it by adjusting the supported NodeJS versions.',
});