Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/examples/basic/basic…
Browse files Browse the repository at this point in the history
…-f8a20ef5ec
  • Loading branch information
anthonyshew authored Jan 24, 2025
2 parents efa447e + 87a8328 commit df2ccc3
Show file tree
Hide file tree
Showing 157 changed files with 5,360 additions and 7,225 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/examples-test-basic.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/examples-test-kitchen-sink.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/examples-test-non-monorepo.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/examples-test-with-svelte.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/examples-test-with-tailwind.yml

This file was deleted.

160 changes: 159 additions & 1 deletion .github/workflows/turborepo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,54 @@ permissions:
pull-requests: read

jobs:
find-changes:
name: Find path changes
runs-on: ubuntu-latest
outputs:
docs: ${{ steps.filter.outputs.docs }}
basic-example: ${{ steps.filter.outputs.basic-example }}
kitchen-sink-example: ${{ steps.filter.outputs.kitchen-sink-example }}
non-monorepo-example: ${{ steps.filter.outputs.non-monorepo-example }}
with-svelte-example: ${{ steps.filter.outputs.with-svelte-example }}
with-tailwind-example: ${{ steps.filter.outputs.with-tailwind-example }}
rest: ${{ steps.filter.outputs.rest }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docs:
- "docs/**"
basic-example:
- "examples/basic/**"
- "turborepo-tests/example-basic-*/**"
- "turborepo-tests/helpers/**"
kitchen-sink-example:
- "examples/kitchen-sink/**"
- "turborepo-tests/example-kitchen-sink-*/**"
- "turborepo-tests/helpers/**"
non-monorepo-example:
- "examples/non-monorepo/**"
- "turborepo-tests/example-non-monorepo-*/**"
- "turborepo-tests/helpers/**"
with-svelte-example:
- "examples/with-svelte/**"
- "turborepo-tests/example-with-svelte-*/**"
- "turborepo-tests/helpers/**"
with-tailwind-example:
- "examples/with-tailwind/**"
- "turborepo-tests/example-with-svelte-*/**"
- "turborepo-tests/helpers/**"
rest:
- "!(docs/**|examples/**)**"
integration:
name: Turborepo Integration
needs:
- find-changes
runs-on: ${{ matrix.os.runner }}
timeout-minutes: 45
if: ${{ needs.find-changes.outputs.rest == 'true' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -82,6 +126,9 @@ jobs:

rust_lint:
name: Rust lints
needs:
- find-changes
if: ${{ needs.find-changes.outputs.rest == 'true' }}
runs-on:
- "self-hosted"
- "linux"
Expand Down Expand Up @@ -115,6 +162,9 @@ jobs:
rust_check:
# We test dependency changes only on main
name: Turborepo rust check
needs:
- find-changes
if: ${{ needs.find-changes.outputs.rest == 'true' }}
runs-on:
- "self-hosted"
- "linux"
Expand Down Expand Up @@ -153,6 +203,9 @@ jobs:
runner: windows-latest
nextest: windows-tar
runs-on: ${{ matrix.os.runner }}
needs:
- find-changes
if: ${{ needs.find-changes.outputs.rest == 'true' }}
name: Turborepo Rust testing on ${{ matrix.os.name }}
steps:
- name: Set git to use LF line endings
Expand Down Expand Up @@ -195,6 +248,101 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

basic-example:
name: "`basic` example"
timeout-minutes: 40
needs:
- find-changes
if: ${{ needs.find-changes.outputs.basic-example == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Run `basic` example tests"
uses: ./.github/actions/examples-tests
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
turbo-token: "${{ secrets.TURBO_TOKEN }}"
turbo-team: "${{ vars.TURBO_TEAM }}"
test-filter: "@turborepo-examples-tests/kitchen-sink-*"

kitchen-sink-example:
name: "`kitchen-sink` example"
needs:
- find-changes
timeout-minutes: 40
if: ${{ needs.find-changes.outputs.kitchen-sink-example == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Run `kitchen-sink` example tests"
uses: ./.github/actions/examples-tests
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
turbo-token: "${{ secrets.TURBO_TOKEN }}"
turbo-team: "${{ vars.TURBO_TEAM }}"
test-filter: "@turborepo-examples-tests/kitchen-sink-*"

non-monorepo-example:
name: "`non-monorepo` example"
timeout-minutes: 40
needs:
- find-changes
if: ${{ needs.find-changes.outputs.non-monorepo-example == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Run `non-monorepo` example tests"
uses: ./.github/actions/examples-tests
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
turbo-token: "${{ secrets.TURBO_TOKEN }}"
turbo-team: "${{ vars.TURBO_TEAM }}"
test-filter: "@turborepo-examples-tests/non-monorepo-*"

with-svelte-example:
name: "`with-svelte` example"
timeout-minutes: 40
needs:
- find-changes
if: ${{ needs.find-changes.outputs.with-svelte-example == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Run `with-svelte` example tests"
uses: ./.github/actions/examples-tests
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
turbo-token: "${{ secrets.TURBO_TOKEN }}"
turbo-team: "${{ vars.TURBO_TEAM }}"
test-filter: "@turborepo-examples-tests/with-svelte-*"

with-tailwind-example:
name: "`with-tailwind` example"
timeout-minutes: 40
needs:
- find-changes
if: ${{ needs.find-changes.outputs.with-tailwind-example == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Run `with-tailwind` example tests"
uses: ./.github/actions/examples-tests
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
turbo-token: "${{ secrets.TURBO_TOKEN }}"
turbo-team: "${{ vars.TURBO_TEAM }}"
test-filter: "@turborepo-examples-tests/with-tailwind-*"

summary:
name: Turborepo Test Summary
runs-on: ubuntu-latest
Expand All @@ -204,6 +352,11 @@ jobs:
- rust_lint
- rust_check
- rust_test
- basic-example
- kitchen-sink-example
- non-monorepo-example
- with-svelte-example
- with-tailwind-example
steps:
- name: Compute info
id: info
Expand All @@ -225,9 +378,14 @@ jobs:
subjob ${{needs.rust_lint.result}}
subjob ${{needs.rust_check.result}}
subjob ${{needs.rust_test.result}}
subjob ${{needs.basic-example.result}}
subjob ${{needs.kitchen-sink-example.result}}
subjob ${{needs.non-monorepo-example.result}}
subjob ${{needs.with-svelte-example.result}}
subjob ${{needs.with-tailwind-example.result}}
if [ "$cancelled" = "true" ]; then
echo "cancelled=true" >> $GITHUB_OUTPUT
echo "cancelled=true" >> $GITHUB_OUTPUT
elif [ "$failure" = "true" ]; then
echo "failure=true" >> $GITHUB_OUTPUT
else
Expand Down
Loading

0 comments on commit df2ccc3

Please sign in to comment.