Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: React Native Nightly
on:
# Runs every night at 4 AM
schedule:
- cron: '0 4 * * *'
workflow_dispatch:

# Set minimal permissions by default
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'main')}}

jobs:
lint:
runs-on: ubuntu-latest
name: Lint - ${{ matrix.rn-version }}
strategy:
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js and deps (latest)
if: matrix.rn-version == 'latest'
uses: ./.github/actions/setup-deps-rn-latest

- name: Setup Node.js and deps (next)
if: matrix.rn-version == 'next'
uses: ./.github/actions/setup-deps-rn-next

- name: Setup Node.js and deps (nightly)
if: matrix.rn-version == 'nightly'
uses: ./.github/actions/setup-deps-rn-nightly

- name: Lint
run: yarn lint

typecheck:
runs-on: ubuntu-latest
name: Typecheck - ${{ matrix.rn-version }}
strategy:
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js and deps (latest)
if: matrix.rn-version == 'latest'
uses: ./.github/actions/setup-deps-rn-latest

- name: Setup Node.js and deps (next)
if: matrix.rn-version == 'next'
uses: ./.github/actions/setup-deps-rn-next

- name: Setup Node.js and deps (nightly)
if: matrix.rn-version == 'nightly'
uses: ./.github/actions/setup-deps-rn-nightly

- name: Typecheck
run: yarn typecheck

test:
runs-on: ubuntu-latest
name: Test - ${{ matrix.rn-version }}
strategy:
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js and deps (latest)
if: matrix.rn-version == 'latest'
uses: ./.github/actions/setup-deps-rn-latest

- name: Setup Node.js and deps (next)
if: matrix.rn-version == 'next'
uses: ./.github/actions/setup-deps-rn-next

- name: Setup Node.js and deps (nightly)
if: matrix.rn-version == 'nightly'
uses: ./.github/actions/setup-deps-rn-nightly

- name: Test
run: yarn test:ci
55 changes: 0 additions & 55 deletions .github/workflows/react-native-latest.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/react-native-next.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/react-native-nightly.yml

This file was deleted.