Skip to content

Commit f8e27c4

Browse files
committed
Merged main
1 parent cec3fa9 commit f8e27c4

File tree

891 files changed

+44581
-24762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

891 files changed

+44581
-24762
lines changed

.config/ast-grep/rule-tests/__snapshots__/no-context-snapshot.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.config/ast-grep/rule-tests/no-context-test.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.config/ast-grep/rules/no-context.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ dist/
88

99
packages/eslint-plugin-turbo/__fixtures__
1010
packages/create-turbo/templates
11-
packages/turbo-tracing-next-plugin/test/with-mongodb-mongoose
1211
crates/*/tests/**
1312
crates/*/js/src/compiled
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Run Turbo Tests"
2+
description: "Setup the environment and run Turbo tests"
3+
inputs:
4+
github-token:
5+
description: "GitHub token for GitHub"
6+
required: true
7+
turbo-token:
8+
description: "Turbo token for authentication"
9+
required: true
10+
turbo-team:
11+
description: "Turbo team for authentication"
12+
required: true
13+
test-filter:
14+
description: "Filter for the turbo run command"
15+
required: true
16+
runs:
17+
using: "composite"
18+
steps:
19+
- name: Disable corepack
20+
shell: bash
21+
run: corepack disable
22+
23+
- name: Setup Turborepo Environment
24+
uses: ./.github/actions/setup-turborepo-environment
25+
with:
26+
github-token: "${{ inputs.github-token }}"
27+
node-version: "22"
28+
29+
- name: Install Global Turbo
30+
uses: ./.github/actions/install-global-turbo
31+
32+
- name: Run Turbo Tests
33+
shell: bash
34+
run: |
35+
turbo run test \
36+
--filter="${{ inputs.test-filter }}" \
37+
--continue \
38+
--token=${{ inputs.turbo-token }} \
39+
--team=${{ inputs.turbo-team }} \
40+
--env-mode=strict \
41+
--concurrency=1
Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
name: "Install Global Turbo"
22
description: "Installs turbo globally. Expects Node and npm to already be installed"
33

4+
inputs:
5+
turbo-version:
6+
description: "Specify a Turbo version or tag (e.g., 2.0.5, latest, beta, canary)"
7+
required: false
8+
default: ""
9+
410
runs:
511
using: "composite"
612
steps:
13+
- name: Determine Turbo Version
14+
id: determine-version
15+
shell: bash
16+
run: |
17+
if [[ -n "${{ inputs.turbo-version }}" ]]; then
18+
VERSION="${{ inputs.turbo-version }}"
19+
else
20+
VERSION=$(npm view turbo --json | jq -r '.versions | map(select(test("^2\\."))) | last')
21+
echo "No version provided, using latest 2.x version: $VERSION"
22+
fi
23+
echo "TURBO_VERSION=$VERSION" >> $GITHUB_ENV
24+
725
- name: Install Turbo globally
826
shell: bash
927
run: |
10-
VERSION=$(npm view turbo --json | jq -r '.versions | map(select(test("2."))) | last')
11-
echo "Latest published version: $VERSION"
12-
npm i -g turbo@$VERSION
28+
echo "Installing turbo@$TURBO_VERSION..."
29+
npm i -g turbo@$TURBO_VERSION

.github/actions/setup-node/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
cache: pnpm
3232

3333
- name: Upgrade corepack
34-
if: ${{ inputs.enable-corepack == 'true' && inputs.node-version == '16' }}
34+
if: ${{ inputs.enable-corepack == 'true' }}
3535
shell: bash
3636
# Forcibly upgrade our available version of corepack.
3737
# The bundled version in node 16 has known issues.

0 commit comments

Comments
 (0)