-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
10 deletions.
There are no files selected for viewing
51 changes: 41 additions & 10 deletions
51
.github/workflows/nightly-node-compatibility-validation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}', | ||
}); |