Skip to content

Commit

Permalink
Merge pull request #1482 from glimmerjs/use-cache-server
Browse files Browse the repository at this point in the history
Setup the cache server
  • Loading branch information
NullVoxPopuli authored Nov 2, 2023
2 parents 77d44d6 + dfa3d1e commit 77faa4d
Show file tree
Hide file tree
Showing 26 changed files with 341 additions and 102 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,22 @@ on:
schedule:
- cron: '0 3 * * *' # daily, at 3am

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

jobs:
install_dependencies:
name: 'Install Dependencies'
name: 'Setup'
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- uses: wyvox/action@v1
with:
node-version: 20.1.0
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm turbo build

lint:
name: Linting
Expand All @@ -29,10 +35,10 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- uses: wyvox/action@v1
with:
node-version: 20.1.0
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm lint

test-chrome:
Expand All @@ -52,10 +58,10 @@ jobs:
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 \
libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release \
xdg-utils wget libcairo2
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- uses: wyvox/action@v1
with:
node-version: 20.1.0
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm test

# test-browserstack:
Expand Down Expand Up @@ -101,12 +107,11 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- uses: wyvox/action@v1
with:
node-version: 20.1.0
- run: pnpm build
- run: pnpm test:types
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm turbo test:types

floating-dependencies:
name: Floating Dependencies
Expand All @@ -115,9 +120,9 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- uses: wyvox/action@v1
with:
args: '--no-lockfile'
pnpm-args: '--no-lockfile'
node-version: 20.1.0
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm test
18 changes: 13 additions & 5 deletions bin/run-types-tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ const __dirname = new URL('.', import.meta.url).pathname;
const root = resolve(__dirname, '..');

async function main() {
const packages = getPackages();
// vm-babel-plugins is exclusively used by ember.
// dom-change-list isn't used by anyone, even in this repo.
const packages = getPackages().filter(
(pkg) => pkg.name !== '@glimmer/vm-babel-plugins' && pkg.name !== '@glimmer/dom-change-list'
);

/**
* Runs a smoke test of the generated type definitions by importing every module
Expand All @@ -23,10 +27,14 @@ async function main() {
for (const pkg of packages) {
try {
console.log(`# Smoke testing ${pkg.name}`);
await execa('tsc', ['-p', resolve(root, 'tsconfig.dist.json')], {
cwd: resolve(pkg.path, 'dist'),
preferLocal: true,
});
await execa(
resolve(root, 'node_modules/.bin/tsc'),
['-p', resolve(root, 'tsconfig.dist.json')],
{
cwd: resolve(pkg.path, 'dist'),
preferLocal: true,
}
);
console.log(`ok ${testNo++} - ${pkg.name} types passed`);
} catch (err) {
let message = getMessage(err);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"test:node": "node bin/run-node-tests.mjs",
"test:babel-plugins": "yarn workspace @glimmer/vm-babel-plugins test",
"test:smoke": "SMOKE_TESTS=true ember test",
"test:types": "node bin/run-types-tests.mjs",
"test:typecheck": "tsc -b"
"test:types": "node bin/run-types-tests.mjs"
},
"pnpm": {
"overrides": {
Expand Down
9 changes: 5 additions & 4 deletions packages/@glimmer/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@
"@glimmer/wire-format": "workspace:^"
},
"devDependencies": {
"eslint": "^8.52.0",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"@types/node": "^18.16.6",
"publint": "^0.2.5"
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"typescript": "*"
},
"scripts": {
"build": "rollup -c rollup.config.mjs",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
"@glimmer/vm": "workspace:^"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"toml": "^3.0.0",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/destroyable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
"@glimmer/util": "workspace:^"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/dom-change-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
"@glimmer/interfaces": "workspace:^"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
5 changes: 3 additions & 2 deletions packages/@glimmer/encoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
"test:publint": "publint"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
}
}
5 changes: 3 additions & 2 deletions packages/@glimmer/global-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
"test:publint": "publint"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
}
}
5 changes: 3 additions & 2 deletions packages/@glimmer/interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
"@simple-dom/interface": "^1.4.0"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
}
}
7 changes: 4 additions & 3 deletions packages/@glimmer/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"dist"
],
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"main": "index.ts",
"types": "index.ts",
Expand Down
9 changes: 5 additions & 4 deletions packages/@glimmer/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"dist"
],
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/compiler": "workspace:^",
"@types/qunit": "^2.19.7",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@types/qunit": "^2.19.7",
"@glimmer/compiler": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/opcode-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"dist"
],
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/owner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
"dist"
],
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/program/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
"@glimmer/vm": "workspace:^"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"main": "index.ts",
"types": "index.ts",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
"@glimmer/validator": "workspace:^"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
11 changes: 6 additions & 5 deletions packages/@glimmer/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@
"@glimmer/wire-format": "workspace:^"
},
"devDependencies": {
"eslint": "^8.52.0",
"rollup": "^3.21.6",
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/debug": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer/opcode-compiler": "workspace:^",
"@glimmer/debug": "workspace:^",
"@types/qunit": "^2.19.7",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
9 changes: 5 additions & 4 deletions packages/@glimmer/syntax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"simple-html-tokenizer": "^0.5.11"
},
"devDependencies": {
"eslint": "^8.52.0",
"rollup": "^3.21.6",
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"@types/qunit": "^2.19.7",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"typescript": "*"
},
"files": [
"dist"
Expand Down
9 changes: 5 additions & 4 deletions packages/@glimmer/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"dist"
],
"devDependencies": {
"eslint": "^8.52.0",
"rollup": "^3.21.6",
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"@types/qunit": "^2.19.7",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"typescript": "*"
},
"main": "index.ts",
"types": "index.ts",
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"@glimmer/util": "workspace:^"
},
"devDependencies": {
"@glimmer-workspace/build-support": "workspace:^",
"@glimmer/local-debug-flags": "workspace:^",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^",
"publint": "^0.2.5"
"typescript": "*"
},
"scripts": {
"test:lint": "eslint .",
Expand Down
Loading

0 comments on commit 77faa4d

Please sign in to comment.