Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turboify builds #8985

Closed
wants to merge 12 commits into from
6 changes: 6 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ runs:
node-version-file: 'package.json'
cache: 'pnpm'

- name: 'Setup local TurboRepo server'
if: ${{ inputs.repo-token }}
uses: felixmosh/turborepo-gh-artifacts@v2
with:
repo-token: ${{ inputs.repo-token }}

- name: Configure Parallel Builds
if: ${{ inputs.parallel-build == 'true' }}
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- cron: '0 20 * * 2' # weekly (Tuesday) 12 PM PST
- cron: '0 20 * * 5' # weekly (Friday) 12 PM PST

env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself

jobs:
release:
name: Run publish script
Expand All @@ -26,6 +31,7 @@ jobs:
- uses: ./.github/actions/setup
with:
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Make sure git user is setup
run: |
git config --local user.email '[email protected]'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/asset-size-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- synchronize
- ready_for_review

env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself

concurrency:
group: asset-size-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: Canary-Mirror-Beta Release
on:
workflow_dispatch:


env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself


jobs:
release:
name: Run publish script
Expand All @@ -25,6 +32,7 @@ jobs:
with:
build-addons: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Make sure git user is setup
run: |
git config --local user.email '[email protected]'
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/compat-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
branches:
- main


env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself

concurrency:
group: compat-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand All @@ -19,6 +25,7 @@ jobs:
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:fastboot
embroider:
Expand All @@ -30,6 +37,7 @@ jobs:
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:embroider
floating-dependencies:
Expand All @@ -38,6 +46,8 @@ jobs:
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: ./.github/actions/setup
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies w/o lockfile
run: pnpm install --no-lockfile
- name: Basic Tests
Expand All @@ -56,5 +66,6 @@ jobs:
node-version: ${{ matrix.node-version }}
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Basic Tests
run: pnpm test
6 changes: 6 additions & 0 deletions .github/workflows/deprecations-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: 'Check Deprecations'
on:
workflow_dispatch:


env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself

jobs:
test-all-deprecations:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs-and-blueprint-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: ./.github/actions/setup
with:
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Test Docs
run: pnpm test:docs
- name: Test Blueprints
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/infra-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
- synchronize
- ready_for_review


env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself

concurrency:
group: infra-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand All @@ -24,6 +30,7 @@ jobs:
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: pnpm test infra compatWith 3.0
env:
COMPAT_WITH: '3.0'
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
tags:
- '*'


env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself

concurrency:
group: ci-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand All @@ -26,6 +32,7 @@ jobs:
with:
restore-lint-caches: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint js
run: pnpm lint:js
- name: Check for TypeScript problems
Expand All @@ -40,6 +47,7 @@ jobs:
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- if: |
github.event_name == 'pull_request' && (
github.base_ref == 'main' || github.base_ref == 'beta'
Expand Down Expand Up @@ -149,6 +157,7 @@ jobs:
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Basic tests with ${{ matrix.scenario }}
timeout-minutes: 10
env:
Expand All @@ -175,6 +184,7 @@ jobs:
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Basic tests with ${{ matrix.release }}
env:
CI: true
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/partner-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
- synchronize
- ready_for_review


env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself

concurrency:
group: partners-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand Down Expand Up @@ -54,6 +60,7 @@ jobs:
restore-broccoli-cache: true
install: true
build-addons: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate package tarballs
run: node ./scripts/packages-for-commit.js
- name: Run Tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ node_modules
scripts/asset-size-tracking/current-data.json

# misc
.turbo/
.env*
.pnp*
.sass-cache
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"url": "git+ssh://[email protected]:emberjs/data.git"
},
"scripts": {
"prepare": "pnpm build",
"build": "pnpm turbo build --filter=./packages/*",
"build:docs": "mkdir -p packages/-ember-data/dist && cd ./docs-generator && node ./compile-docs.js",
"lint:js": "eslint --quiet --cache --cache-strategy=content --ext=js,ts .",
"preinstall": "npx only-allow pnpm",
Expand Down Expand Up @@ -68,6 +70,7 @@
"json-typescript": "^1.1.2",
"lerna-changelog": "^2.2.0",
"loader.js": "^4.7.0",
"pnpm-sync-dependencies-meta-injected": "0.0.10",
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"semver": "^7.5.4",
Expand Down Expand Up @@ -140,5 +143,8 @@
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
},
"dependencies": {
"turbo": "^1.10.15"
}
}
}
8 changes: 5 additions & 3 deletions packages/-ember-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test": "tests"
},
"scripts": {
"prepack": "cd ../../ && pnpm build:docs"
"prepack": "cd ../../ && pnpm build:docs",
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
},
"author": "",
"license": "MIT",
Expand Down Expand Up @@ -86,7 +87,8 @@
"@ember/string": "3.1.1",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"ember-source": "~5.3.0"
"ember-source": "~5.3.0",
"pnpm-sync-dependencies-meta-injected": "0.0.10"
},
"engines": {
"node": ">= 18.*"
Expand All @@ -102,4 +104,4 @@
"extends": "../../package.json"
},
"packageManager": "[email protected]"
}
}
8 changes: 3 additions & 5 deletions packages/active-record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
"ember-inflector": {
"injected": true
},
"@ember-data/store": {
"injected": true
},
"@ember/string": {
"injected": true
}
Expand All @@ -52,7 +49,7 @@
"build": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
"start": "rollup --config --watch",
"prepack": "pnpm build",
"prepare": "pnpm build"
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
},
"ember-addon": {
"main": "addon-main.js",
Expand All @@ -72,6 +69,7 @@
"@embroider/addon-dev": "^4.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.2",
"pnpm-sync-dependencies-meta-injected": "0.0.10",
"rollup": "^3.29.4",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
Expand All @@ -80,4 +78,4 @@
"ember": {
"edition": "octane"
}
}
}
5 changes: 3 additions & 2 deletions packages/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
"start": "rollup --config --watch",
"prepack": "pnpm build",
"prepare": "pnpm build"
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
},
"ember-addon": {
"main": "addon-main.js",
Expand Down Expand Up @@ -68,6 +68,7 @@
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.2",
"ember-source": "~5.3.0",
"pnpm-sync-dependencies-meta-injected": "0.0.10",
"rollup": "^3.29.4",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
Expand All @@ -81,4 +82,4 @@
"extends": "../../package.json"
},
"packageManager": "[email protected]"
}
}
17 changes: 8 additions & 9 deletions packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,16 @@
"license": "MIT",
"author": "",
"directories": {},
"scripts": {},
"scripts": {
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
},
"peerDependencies": {
"@ember-data/store": "workspace:5.5.0-alpha.11",
"@ember/string": "^3.1.1"
},
"dependenciesMeta": {
"@ember-data/private-build-infra": {
"injected": true
},
"@ember/string": {
"injected": true
},
"@ember-data/store": {
"injected": true
}
},
"dependencies": {
Expand All @@ -45,5 +41,8 @@
"volta": {
"extends": "../../package.json"
},
"packageManager": "[email protected]"
}
"packageManager": "[email protected]",
"devDependencies": {
"pnpm-sync-dependencies-meta-injected": "0.0.10"
}
}
5 changes: 2 additions & 3 deletions packages/diagnostic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
"build:runtime": "rollup --config",
"build": "pnpm build:runtime && pnpm build:types",
"start": "rollup --config --watch",
"prepack": "pnpm build",
"prepare": "pnpm build"
"prepack": "pnpm build"
},
"peerDependencies": {},
"dependencies": {},
Expand All @@ -73,4 +72,4 @@
"extends": "../../package.json"
},
"packageManager": "[email protected]"
}
}
Loading