From 82674dfb669529b3a48d7ff51ff02cf6406d4a04 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Tue, 21 Jan 2025 12:24:01 -0700 Subject: [PATCH 01/13] ci: stop running unneeded tests for docs and examples changes --- .github/workflows/turborepo-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 911925d0b6d51..8f32aed944e00 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -3,6 +3,9 @@ on: push: branches: [main] pull_request: + paths: + - "!docs/**" + - "!examples/**" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} From aa0d11cbacf6f25b5b7aaef6a21a27740a874657 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 11:39:53 -0700 Subject: [PATCH 02/13] WIP --- .github/workflows/turborepo-test.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 8f32aed944e00..fad64b72c28e8 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -3,9 +3,6 @@ on: push: branches: [main] pull_request: - paths: - - "!docs/**" - - "!examples/**" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -17,10 +14,24 @@ permissions: pull-requests: read jobs: + find-changes: + name: Find path changes + runs-on: ubuntu-latest + steps: + - uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + docs-or-examples: + - "docs/**" + - "examples/**" integration: name: Turborepo Integration + needs: + - changes runs-on: ${{ matrix.os.runner }} timeout-minutes: 45 + if: steps.changes.outputs.docs-or-examples == 'false' strategy: fail-fast: false matrix: @@ -85,6 +96,9 @@ jobs: rust_lint: name: Rust lints + if: steps.changes.outputs.docs-or-examples == 'false' + needs: + - changes runs-on: - "self-hosted" - "linux" @@ -118,6 +132,9 @@ jobs: rust_check: # We test dependency changes only on main name: Turborepo rust check + needs: + - changes + if: steps.changes.outputs.docs-or-examples == 'false' runs-on: - "self-hosted" - "linux" @@ -156,6 +173,9 @@ jobs: runner: windows-latest nextest: windows-tar runs-on: ${{ matrix.os.runner }} + needs: + - changes + if: steps.changes.outputs.docs-or-examples == 'false' name: Turborepo Rust testing on ${{ matrix.os.name }} steps: - name: Set git to use LF line endings From 6aeb572f2256b6a859b8fba41eb57c87b1e32940 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 11:42:11 -0700 Subject: [PATCH 03/13] WIP --- .github/workflows/turborepo-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index fad64b72c28e8..d0c147161e0a3 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -25,13 +25,14 @@ jobs: docs-or-examples: - "docs/**" - "examples/**" + integration: name: Turborepo Integration needs: - changes runs-on: ${{ matrix.os.runner }} timeout-minutes: 45 - if: steps.changes.outputs.docs-or-examples == 'false' + # if: steps.changes.outputs.docs-or-examples == 'false' strategy: fail-fast: false matrix: From e151c70708cfd9927844e919be39018b291754c5 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 11:49:48 -0700 Subject: [PATCH 04/13] WIP --- .github/workflows/turborepo-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index d0c147161e0a3..23d0cba6897a8 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -28,8 +28,8 @@ jobs: integration: name: Turborepo Integration - needs: - - changes + # needs: + # - changes runs-on: ${{ matrix.os.runner }} timeout-minutes: 45 # if: steps.changes.outputs.docs-or-examples == 'false' From 372d163e2bfad281bfc7e270313d3d5d341131da Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 11:52:02 -0700 Subject: [PATCH 05/13] WIP --- .github/workflows/turborepo-test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 23d0cba6897a8..fd3df35b7f074 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -28,11 +28,11 @@ jobs: integration: name: Turborepo Integration - # needs: - # - changes + needs: + - changes runs-on: ${{ matrix.os.runner }} timeout-minutes: 45 - # if: steps.changes.outputs.docs-or-examples == 'false' + if: needs.changes.outputs.docs-or-examples == 'false' strategy: fail-fast: false matrix: @@ -97,9 +97,9 @@ jobs: rust_lint: name: Rust lints - if: steps.changes.outputs.docs-or-examples == 'false' needs: - changes + if: needs.changes.outputs.docs-or-examples == 'false' runs-on: - "self-hosted" - "linux" @@ -135,7 +135,7 @@ jobs: name: Turborepo rust check needs: - changes - if: steps.changes.outputs.docs-or-examples == 'false' + if: needs.changes.outputs.docs-or-examples == 'false' runs-on: - "self-hosted" - "linux" @@ -176,7 +176,7 @@ jobs: runs-on: ${{ matrix.os.runner }} needs: - changes - if: steps.changes.outputs.docs-or-examples == 'false' + if: needs.changes.outputs.docs-or-examples == 'false' name: Turborepo Rust testing on ${{ matrix.os.name }} steps: - name: Set git to use LF line endings From 1dbba9fecadc21435f16a3be1a43c57a01ded067 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 11:53:33 -0700 Subject: [PATCH 06/13] WIP --- .github/workflows/turborepo-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index fd3df35b7f074..e02cd5bbf980a 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -17,9 +17,11 @@ jobs: find-changes: name: Find path changes runs-on: ubuntu-latest + outputs: + docs-or-examples: ${{ steps.filter.outputs.docs-or-examples }} steps: - uses: dorny/paths-filter@v3 - id: changes + id: filter with: filters: | docs-or-examples: From dc4d3a37564cb208ef517a948016facc1ba14bf6 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 11:54:34 -0700 Subject: [PATCH 07/13] WIP --- .github/workflows/turborepo-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index e02cd5bbf980a..6338c868d13bb 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -34,7 +34,7 @@ jobs: - changes runs-on: ${{ matrix.os.runner }} timeout-minutes: 45 - if: needs.changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.docs-or-examples == 'false' strategy: fail-fast: false matrix: @@ -101,7 +101,7 @@ jobs: name: Rust lints needs: - changes - if: needs.changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.docs-or-examples == 'false' runs-on: - "self-hosted" - "linux" @@ -137,7 +137,7 @@ jobs: name: Turborepo rust check needs: - changes - if: needs.changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.docs-or-examples == 'false' runs-on: - "self-hosted" - "linux" @@ -178,7 +178,7 @@ jobs: runs-on: ${{ matrix.os.runner }} needs: - changes - if: needs.changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.docs-or-examples == 'false' name: Turborepo Rust testing on ${{ matrix.os.name }} steps: - name: Set git to use LF line endings From 0ab7aeff5fef38c22014299a8c12d5379dbf979f Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 11:56:49 -0700 Subject: [PATCH 08/13] WIP --- .github/workflows/turborepo-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 6338c868d13bb..0fdbfaaa846f6 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -31,7 +31,7 @@ jobs: integration: name: Turborepo Integration needs: - - changes + - find-changes runs-on: ${{ matrix.os.runner }} timeout-minutes: 45 if: needs.find-changes.outputs.docs-or-examples == 'false' @@ -100,7 +100,7 @@ jobs: rust_lint: name: Rust lints needs: - - changes + - find-changes if: needs.find-changes.outputs.docs-or-examples == 'false' runs-on: - "self-hosted" @@ -136,7 +136,7 @@ jobs: # We test dependency changes only on main name: Turborepo rust check needs: - - changes + - find-changes if: needs.find-changes.outputs.docs-or-examples == 'false' runs-on: - "self-hosted" @@ -177,7 +177,7 @@ jobs: nextest: windows-tar runs-on: ${{ matrix.os.runner }} needs: - - changes + - find-changes if: needs.find-changes.outputs.docs-or-examples == 'false' name: Turborepo Rust testing on ${{ matrix.os.name }} steps: From 3d27eaeea95d3f67366aec1632cd834070a26b1a Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 12:28:26 -0700 Subject: [PATCH 09/13] WIP --- .github/workflows/examples-test-basic.yml | 1 - .github/workflows/turborepo-test.yml | 129 ++++++++++++++++++++-- 2 files changed, 122 insertions(+), 8 deletions(-) diff --git a/.github/workflows/examples-test-basic.yml b/.github/workflows/examples-test-basic.yml index 43247294a5a7b..69ceff3f877fd 100644 --- a/.github/workflows/examples-test-basic.yml +++ b/.github/workflows/examples-test-basic.yml @@ -24,7 +24,6 @@ jobs: - name: "Run `basic` example tests" uses: ./.github/actions/examples-tests with: - node-version: "22" github-token: "${{ secrets.GITHUB_TOKEN }}" turbo-token: "${{ secrets.TURBO_TOKEN }}" turbo-team: "${{ vars.TURBO_TEAM }}" diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 0fdbfaaa846f6..f22b7e0daadcc 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -18,15 +18,41 @@ jobs: name: Find path changes runs-on: ubuntu-latest outputs: - docs-or-examples: ${{ steps.filter.outputs.docs-or-examples }} + docs: ${{ steps.filter.outputs.docs }} + examples-utils: ${{ steps.filter.outputs.examples-utils }} + 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-or-examples: + docs: - "docs/**" - - "examples/**" + examples-utils: + - "turborepo-tests/helpers/**" + basic-example: + - examples/basic/** + - turborepo-tests/example-basic-*/** + kitchen-sink-example: + - examples/kitchen-sink/** + - turborepo-tests/example-kitchen-sink-*/** + non-monorepo-example: + - examples/non-monorepo/** + - turborepo-tests/example-non-monorepo-*/** + with-svelte-example: + - examples/with-svelte/** + - turborepo-tests/example-with-svelte-*/** + with-tailwind-example: + - examples/with-tailwind/** + - turborepo-tests/example-with-svelte-*/** + rest: + - "!examples/**" + - "!docs/**" integration: name: Turborepo Integration @@ -34,7 +60,7 @@ jobs: - find-changes runs-on: ${{ matrix.os.runner }} timeout-minutes: 45 - if: needs.find-changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.rest == 'true' strategy: fail-fast: false matrix: @@ -101,7 +127,7 @@ jobs: name: Rust lints needs: - find-changes - if: needs.find-changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.rest == 'true' runs-on: - "self-hosted" - "linux" @@ -137,7 +163,7 @@ jobs: name: Turborepo rust check needs: - find-changes - if: needs.find-changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.rest == 'true' runs-on: - "self-hosted" - "linux" @@ -178,7 +204,7 @@ jobs: runs-on: ${{ matrix.os.runner }} needs: - find-changes - if: needs.find-changes.outputs.docs-or-examples == 'false' + if: needs.find-changes.outputs.rest == 'true' name: Turborepo Rust testing on ${{ matrix.os.name }} steps: - name: Set git to use LF line endings @@ -221,6 +247,95 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + basic-example: + name: basic + timeout-minutes: 40 + 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: + name: kitchen-sink + 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: + node-version: "22" + 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 + timeout-minutes: 40 + 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: + node-version: "22" + 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 + timeout-minutes: 40 + 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: + node-version: "22" + 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 + timeout-minutes: 40 + 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: + node-version: "22" + 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 From e551ab00ba91abc02c85ad7137c473cdb409f874 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 12:30:32 -0700 Subject: [PATCH 10/13] WIP --- .github/workflows/turborepo-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index f22b7e0daadcc..2fe96284d794c 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -53,7 +53,8 @@ jobs: rest: - "!examples/**" - "!docs/**" - + - "!.github/**" + # THE PREVIOUS LINE IS ONLY THERE FOR TESTING PLEASE REMOVE integration: name: Turborepo Integration needs: From 0e345c542fdf1f5e55ad1b9d963bfc2b0fe5e81b Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 12:34:39 -0700 Subject: [PATCH 11/13] WIP --- .github/workflows/examples-test-basic.yml | 30 ------------------ .../workflows/examples-test-kitchen-sink.yml | 31 ------------------- .../workflows/examples-test-non-monorepo.yml | 31 ------------------- .../workflows/examples-test-with-svelte.yml | 31 ------------------- .../workflows/examples-test-with-tailwind.yml | 31 ------------------- .github/workflows/turborepo-test.yml | 17 ++++++---- 6 files changed, 11 insertions(+), 160 deletions(-) delete mode 100644 .github/workflows/examples-test-basic.yml delete mode 100644 .github/workflows/examples-test-kitchen-sink.yml delete mode 100644 .github/workflows/examples-test-non-monorepo.yml delete mode 100644 .github/workflows/examples-test-with-svelte.yml delete mode 100644 .github/workflows/examples-test-with-tailwind.yml diff --git a/.github/workflows/examples-test-basic.yml b/.github/workflows/examples-test-basic.yml deleted file mode 100644 index 69ceff3f877fd..0000000000000 --- a/.github/workflows/examples-test-basic.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Examples tests - basic -on: - push: - branches: [main] - pull_request: - paths: - - examples/basic/** - - turborepo-tests/example-basic-*/** - - turborepo-tests/helpers/** - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - basic-example: - name: basic - timeout-minutes: 40 - 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-*" diff --git a/.github/workflows/examples-test-kitchen-sink.yml b/.github/workflows/examples-test-kitchen-sink.yml deleted file mode 100644 index ef197048f52aa..0000000000000 --- a/.github/workflows/examples-test-kitchen-sink.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Example tests - kitchen-sink -on: - push: - branches: [main] - pull_request: - paths: - - examples/kitchen-sink/** - - turborepo-tests/example-kitchen-sink-*/** - - turborepo-tests/helpers/** - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - kitchen-sink: - name: kitchen-sink - timeout-minutes: 40 - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: "Run `kitchen-sink` example tests" - uses: ./.github/actions/examples-tests - with: - node-version: "22" - github-token: "${{ secrets.GITHUB_TOKEN }}" - turbo-token: "${{ secrets.TURBO_TOKEN }}" - turbo-team: "${{ vars.TURBO_TEAM }}" - test-filter: "@turborepo-examples-tests/kitchen-sink-*" diff --git a/.github/workflows/examples-test-non-monorepo.yml b/.github/workflows/examples-test-non-monorepo.yml deleted file mode 100644 index 9e96b2f96a521..0000000000000 --- a/.github/workflows/examples-test-non-monorepo.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Example tests - non-monorepo -on: - push: - branches: [main] - pull_request: - paths: - - examples/non-monorepo/** - - turborepo-tests/example-non-monorepo-*/** - - turborepo-tests/helpers/** - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - non-monorepo-example: - name: non-monorepo - timeout-minutes: 40 - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: "Run `non-monorepo` example tests" - uses: ./.github/actions/examples-tests - with: - node-version: "22" - github-token: "${{ secrets.GITHUB_TOKEN }}" - turbo-token: "${{ secrets.TURBO_TOKEN }}" - turbo-team: "${{ vars.TURBO_TEAM }}" - test-filter: "@turborepo-examples-tests/non-monorepo-*" diff --git a/.github/workflows/examples-test-with-svelte.yml b/.github/workflows/examples-test-with-svelte.yml deleted file mode 100644 index ebf45d272b2d0..0000000000000 --- a/.github/workflows/examples-test-with-svelte.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Example tests - with-svelte -on: - push: - branches: [main] - pull_request: - paths: - - examples/with-svelte/** - - turborepo-tests/example-with-svelte-*/** - - turborepo-tests/helpers/** - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - with-svelte-example: - name: with-svelte - timeout-minutes: 40 - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: "Run `with-svelte` example tests" - uses: ./.github/actions/examples-tests - with: - node-version: "22" - github-token: "${{ secrets.GITHUB_TOKEN }}" - turbo-token: "${{ secrets.TURBO_TOKEN }}" - turbo-team: "${{ vars.TURBO_TEAM }}" - test-filter: "@turborepo-examples-tests/with-svelte-*" diff --git a/.github/workflows/examples-test-with-tailwind.yml b/.github/workflows/examples-test-with-tailwind.yml deleted file mode 100644 index 18a8ac0fbbf04..0000000000000 --- a/.github/workflows/examples-test-with-tailwind.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Examples tests - with-tailwind -on: - push: - branches: [main] - pull_request: - paths: - - examples/with-tailwind/** - - turborepo-tests/example-with-tailwind-*/** - - turborepo-tests/helpers/** - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - with-tailwind-example: - name: with-tailwind - timeout-minutes: 40 - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: "Run `with-tailwind` example tests" - uses: ./.github/actions/examples-tests - with: - node-version: "22" - github-token: "${{ secrets.GITHUB_TOKEN }}" - turbo-token: "${{ secrets.TURBO_TOKEN }}" - turbo-team: "${{ vars.TURBO_TEAM }}" - test-filter: "@turborepo-examples-tests/with-tailwind-*" diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 2fe96284d794c..ce03807b0ee98 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -53,8 +53,7 @@ jobs: rest: - "!examples/**" - "!docs/**" - - "!.github/**" - # THE PREVIOUS LINE IS ONLY THERE FOR TESTING PLEASE REMOVE + integration: name: Turborepo Integration needs: @@ -277,7 +276,6 @@ jobs: - name: "Run `kitchen-sink` example tests" uses: ./.github/actions/examples-tests with: - node-version: "22" github-token: "${{ secrets.GITHUB_TOKEN }}" turbo-token: "${{ secrets.TURBO_TOKEN }}" turbo-team: "${{ vars.TURBO_TEAM }}" @@ -295,7 +293,6 @@ jobs: - name: "Run `non-monorepo` example tests" uses: ./.github/actions/examples-tests with: - node-version: "22" github-token: "${{ secrets.GITHUB_TOKEN }}" turbo-token: "${{ secrets.TURBO_TOKEN }}" turbo-team: "${{ vars.TURBO_TEAM }}" @@ -313,7 +310,6 @@ jobs: - name: "Run `with-svelte` example tests" uses: ./.github/actions/examples-tests with: - node-version: "22" github-token: "${{ secrets.GITHUB_TOKEN }}" turbo-token: "${{ secrets.TURBO_TOKEN }}" turbo-team: "${{ vars.TURBO_TEAM }}" @@ -331,7 +327,6 @@ jobs: - name: "Run `with-tailwind` example tests" uses: ./.github/actions/examples-tests with: - node-version: "22" github-token: "${{ secrets.GITHUB_TOKEN }}" turbo-token: "${{ secrets.TURBO_TOKEN }}" turbo-team: "${{ vars.TURBO_TEAM }}" @@ -346,6 +341,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 @@ -367,6 +367,11 @@ 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 From f34432e400636470472c8f38fcd7a642c80184c9 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 12:44:01 -0700 Subject: [PATCH 12/13] WIP --- .github/workflows/turborepo-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index ce03807b0ee98..30c3896a8af20 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -264,7 +264,7 @@ jobs: turbo-team: "${{ vars.TURBO_TEAM }}" test-filter: "@turborepo-examples-tests/kitchen-sink-*" - kitchen-sink: + kitchen-sink-example: name: kitchen-sink timeout-minutes: 40 if: needs.find-changes.outputs.kitchen-sink-example == 'true' @@ -374,7 +374,7 @@ jobs: 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 From 3bcdc12764aba15d0399045ff6b0db8250af5b99 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Thu, 23 Jan 2025 13:37:28 -0700 Subject: [PATCH 13/13] WIP --- .github/workflows/turborepo-test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 30c3896a8af20..9c80f1d0f0d95 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -248,7 +248,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} basic-example: - name: basic + name: "`basic` example" timeout-minutes: 40 if: needs.find-changes.outputs.basic-example == 'true' runs-on: ubuntu-latest @@ -265,7 +265,7 @@ jobs: test-filter: "@turborepo-examples-tests/kitchen-sink-*" kitchen-sink-example: - name: kitchen-sink + name: "`kitchen-sink` example" timeout-minutes: 40 if: needs.find-changes.outputs.kitchen-sink-example == 'true' runs-on: ubuntu-latest @@ -282,7 +282,7 @@ jobs: test-filter: "@turborepo-examples-tests/kitchen-sink-*" non-monorepo-example: - name: non-monorepo + name: "`non-monorepo` example" timeout-minutes: 40 if: needs.find-changes.outputs.non-monorepo-example == 'true' runs-on: ubuntu-latest @@ -299,7 +299,7 @@ jobs: test-filter: "@turborepo-examples-tests/non-monorepo-*" with-svelte-example: - name: with-svelte + name: "`with-svelte` example" timeout-minutes: 40 if: needs.find-changes.outputs.with-svelte-example == 'true' runs-on: ubuntu-latest @@ -316,7 +316,7 @@ jobs: test-filter: "@turborepo-examples-tests/with-svelte-*" with-tailwind-example: - name: with-tailwind + name: "`with-tailwind` example" timeout-minutes: 40 if: needs.find-changes.outputs.with-tailwind-example == 'true' runs-on: ubuntu-latest