Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vzaidman committed Aug 8, 2024
1 parent 47ca112 commit 1746eda
Showing 1 changed file with 41 additions and 10 deletions.
51 changes: 41 additions & 10 deletions .github/workflows/nightly-node-compatibility-validation.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,48 @@
# 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 * * *'
# todo: remove
push:

jobs:
test:
strategy:
matrix:
runs-on: ['ubuntu-latest']
# minimum supported, latest and pre-latest lts, latest version
node-version: ['18.0', 'lts/-1', 'lts/*', 'current']
uses: ./.github/workflows/test.yml
with:
node-version: ${{ matrix.node-version }}
runs-on: ${{ matrix.runs-on }}
# test:
# strategy:
# matrix:
# runs-on: ['ubuntu-latest']
# # minimum supported, latest and pre-latest lts, latest version
# node-version: ['18.0', 'lts/-1', 'lts/*', 'current']
# uses: ./.github/workflows/test.yml
# with:
# node-version: ${{ matrix.node-version }}
# runs-on: ${{ matrix.runs-on }}

fail:
runs-on: ubuntu-latest
steps:
- run: 'exit 1'
shell: bash

comment-on-pr-for-failures:
runs-on: ubuntu-latest
needs: [fail]
if: ${{ always() && needs.fail.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: '${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}',
});

0 comments on commit 1746eda

Please sign in to comment.