mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f806851875
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53066 This diff introduces the mechanism for us to store the result of nightly 3p library integration on Firebase. Having the result store, we can now query the result from the previous day and report if the build is newly broken or recovered overnight. Changelog: [Internal] [Changed] - Reviewed By: cipolleschi Differential Revision: D79565536 fbshipit-source-id: ba839b2950462a7ca6186a163f93f062719304fb
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
# This jobs runs every day 2 hours after the nightly job and its purpose is to report
|
|
# a failure in case the nightly failed to be published. We are going to hook this to an internal automation.
|
|
name: Check Nightlies
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# nightly build @ 4:15 AM UTC
|
|
schedule:
|
|
- cron: '15 4 * * *'
|
|
|
|
jobs:
|
|
check-nightly:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Check nightly
|
|
run: |
|
|
TODAY=$(date "+%Y%m%d")
|
|
echo "Checking nightly for $TODAY"
|
|
NIGHTLY="$(npm view react-native | grep $TODAY)"
|
|
if [[ -z $NIGHTLY ]]; then
|
|
echo 'Nightly job failed.'
|
|
exit 1
|
|
else
|
|
echo 'Nightly Worked, All Good!'
|
|
fi
|
|
|
|
test-libraries:
|
|
uses: ./.github/workflows/test-libraries-on-nightlies.yml
|
|
needs: check-nightly
|
|
secrets:
|
|
discord_webhook_url: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }}
|
|
firebase_app_email: ${{ secrets.FIREBASE_APP_EMAIL }}
|
|
firebase_app_pass: ${{ secrets.FIREBASE_APP_PASS }}
|
|
firebase_app_projectname: ${{ secrets.FIREBASE_APP_PROJECTNAME }}
|
|
firebase_app_apikey: ${{ secrets.FIREBASE_APP_APIKEY }}
|