forked from remix-run/react-router
-
Notifications
You must be signed in to change notification settings - Fork 0
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
797 changed files
with
90,544 additions
and
39,235 deletions.
There are no files selected for viewing
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Branch | ||
|
||
# main/dev/release-* branches will get the full run across | ||
# all OS/browsers for multiple node versions | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
- release-* | ||
tags: | ||
- "v0.0.0-nightly-*" | ||
paths-ignore: | ||
- ".changeset/**" | ||
- "decisions/**" | ||
- "docs/**" | ||
- "examples/**" | ||
- "jest/**" | ||
- "scripts/**" | ||
- "tutorial/**" | ||
- "contributors.yml" | ||
- "**/*.md" | ||
|
||
jobs: | ||
build: | ||
name: "⚙️ Build" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-build.yml | ||
|
||
integration-ubuntu: | ||
name: "👀 Integration Test" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-integration.yml | ||
with: | ||
os: "ubuntu-latest" | ||
node_version: "[20, 22]" | ||
browser: '["chromium", "firefox"]' | ||
|
||
integration-windows: | ||
name: "👀 Integration Test" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-integration.yml | ||
with: | ||
os: "windows-latest" | ||
node_version: "[20, 22]" | ||
browser: '["msedge"]' | ||
|
||
integration-macos: | ||
name: "👀 Integration Test" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-integration.yml | ||
with: | ||
os: "macos-latest" | ||
node_version: "[20, 22]" | ||
browser: '["webkit"]' |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: PR (Base) | ||
|
||
# All PRs touching code will run tests on ubuntu/node/chromium | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- ".changeset/**" | ||
- "decisions/**" | ||
- "docs/**" | ||
- "examples/**" | ||
- "jest/**" | ||
- "scripts/**" | ||
- "tutorial/**" | ||
- "contributors.yml" | ||
- "**/*.md" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: "⚙️ Build" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-build.yml | ||
|
||
integration-chromium: | ||
name: "👀 Integration Test" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-integration.yml | ||
with: | ||
os: "ubuntu-latest" | ||
node_version: "[22]" | ||
browser: '["chromium"]' |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: PR (Full) | ||
|
||
# PRs touching react-router-dev will also run on Windows and OSX | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "pnpm-lock.yaml" | ||
- "integration/**" | ||
- "packages/react-router-dev/**" | ||
- "!**/*.md" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
integration-firefox: | ||
name: "👀 Integration Test" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-integration.yml | ||
with: | ||
os: "ubuntu-latest" | ||
node_version: "[22]" | ||
browser: '["firefox"]' | ||
|
||
integration-msedge: | ||
name: "👀 Integration Test" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-integration.yml | ||
with: | ||
os: "windows-latest" | ||
node_version: "[22]" | ||
browser: '["msedge"]' | ||
|
||
integration-webkit: | ||
name: "👀 Integration Test" | ||
if: github.repository == 'remix-run/react-router' | ||
uses: ./.github/workflows/shared-integration.yml | ||
with: | ||
os: "macos-latest" | ||
node_version: "[22]" | ||
browser: '["webkit"]' |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 🛠️ Build | ||
|
||
on: | ||
workflow_call: | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "pnpm" | ||
|
||
- uses: google/wireit@setup-github-actions-caching/v2 | ||
|
||
- name: Disable GitHub Actions Annotations | ||
run: | | ||
echo "::remove-matcher owner=tsc::" | ||
echo "::remove-matcher owner=eslint-compact::" | ||
echo "::remove-matcher owner=eslint-stylish::" | ||
- name: 📥 Install deps | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 🏗 Build | ||
run: pnpm build |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: 🧪 Test (Integration) | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: true | ||
type: string | ||
node_version: | ||
required: true | ||
# this is limited to string | boolean | number (https://github.community/t/can-action-inputs-be-arrays/16457) | ||
# but we want to pass an array (node_version: "[20, 22]"), | ||
# so we'll need to manually stringify it for now | ||
type: string | ||
browser: | ||
required: true | ||
# this is limited to string | boolean | number (https://github.community/t/can-action-inputs-be-arrays/16457) | ||
# but we want to pass an array (browser: "['chromium', 'firefox']"), | ||
# so we'll need to manually stringify it for now | ||
type: string | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
integration: | ||
name: "${{ inputs.os }} / node@${{ matrix.node }} / ${{ matrix.browser }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node: ${{ fromJSON(inputs.node_version) }} | ||
browser: ${{ fromJSON(inputs.browser) }} | ||
|
||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: ⎔ Setup node ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: "pnpm" | ||
|
||
- uses: google/wireit@setup-github-actions-caching/v2 | ||
|
||
- name: Disable GitHub Actions Annotations | ||
run: | | ||
echo "::remove-matcher owner=tsc::" | ||
echo "::remove-matcher owner=eslint-compact::" | ||
echo "::remove-matcher owner=eslint-stylish::" | ||
- name: 📥 Install deps | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 📥 Install Playwright | ||
run: npx playwright install --with-deps ${{ matrix.browser }} | ||
|
||
- name: 👀 Run Integration Tests ${{ matrix.browser }} | ||
run: "pnpm test:integration --project=${{ matrix.browser }}" | ||
timeout-minutes: 40 |
Oops, something went wrong.