From 76b2fad1998527eda6db60fb7ebcd91df22a66db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Jastrze=CC=A8bski?= Date: Wed, 7 Jan 2026 13:59:15 +0100 Subject: [PATCH 1/2] chore: tweak nightly job --- ...{react-native-nightly.yml => nightly.yaml} | 26 ++++++--- .github/workflows/react-native-latest.yml | 55 ------------------- .github/workflows/react-native-next.yml | 55 ------------------- 3 files changed, 17 insertions(+), 119 deletions(-) rename .github/workflows/{react-native-nightly.yml => nightly.yaml} (61%) delete mode 100644 .github/workflows/react-native-latest.yml delete mode 100644 .github/workflows/react-native-next.yml diff --git a/.github/workflows/react-native-nightly.yml b/.github/workflows/nightly.yaml similarity index 61% rename from .github/workflows/react-native-nightly.yml rename to .github/workflows/nightly.yaml index f8cd82f55..0fb3d561b 100644 --- a/.github/workflows/react-native-nightly.yml +++ b/.github/workflows/nightly.yaml @@ -1,9 +1,8 @@ name: React Native Nightly on: - # Runs every night at 5 AM + # Runs every night at 4 AM schedule: - - cron: '0 5 * * *' - # Manual trigger + - cron: '0 4 * * *' workflow_dispatch: # Set minimal permissions by default @@ -17,39 +16,48 @@ concurrency: jobs: lint: runs-on: ubuntu-latest - name: Lint + 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 - uses: ./.github/actions/setup-deps-rn-nightly + uses: ./.github/actions/setup-deps-rn-${{ matrix.rn-version }} - name: Lint run: yarn lint typecheck: runs-on: ubuntu-latest - name: Typecheck + 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 - uses: ./.github/actions/setup-deps-rn-nightly + uses: ./.github/actions/setup-deps-rn-${{ matrix.rn-version }} - name: Typecheck run: yarn typecheck test: runs-on: ubuntu-latest - name: Test + 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 - uses: ./.github/actions/setup-deps-rn-nightly + uses: ./.github/actions/setup-deps-rn-${{ matrix.rn-version }} - name: Test run: yarn test:ci diff --git a/.github/workflows/react-native-latest.yml b/.github/workflows/react-native-latest.yml deleted file mode 100644 index 7881cd00b..000000000 --- a/.github/workflows/react-native-latest.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: React Native Latest -on: - # Runs every night at 2 AM - schedule: - - cron: '0 2 * * *' - # Manual trigger - 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 - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-latest - - - name: Lint - run: yarn lint - - typecheck: - runs-on: ubuntu-latest - name: Typecheck - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-latest - - - name: Typecheck - run: yarn typecheck - - test: - runs-on: ubuntu-latest - name: Test - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-latest - - - name: Test - run: yarn test:ci diff --git a/.github/workflows/react-native-next.yml b/.github/workflows/react-native-next.yml deleted file mode 100644 index f8f98b327..000000000 --- a/.github/workflows/react-native-next.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: React Native Next -on: - # Runs every night at 2 AM - schedule: - - cron: '0 2 * * *' - # Manual trigger - 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 - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-next - - - name: Lint - run: yarn lint - - typecheck: - runs-on: ubuntu-latest - name: Typecheck - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-next - - - name: Typecheck - run: yarn typecheck - - test: - runs-on: ubuntu-latest - name: Test - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-next - - - name: Test - run: yarn test:ci From efc573ae8954496f44bef508630acfea15f8c9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Jastrze=CC=A8bski?= Date: Wed, 7 Jan 2026 14:02:03 +0100 Subject: [PATCH 2/2] . --- .github/workflows/nightly.yaml | 39 ++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 0fb3d561b..8d0e220ca 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -24,8 +24,17 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-${{ matrix.rn-version }} + - 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 @@ -40,8 +49,17 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-${{ matrix.rn-version }} + - 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 @@ -56,8 +74,17 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Node.js and deps - uses: ./.github/actions/setup-deps-rn-${{ matrix.rn-version }} + - 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