Skip to content

Commit

Permalink
Shorter task names
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Stamm <ts@timostamm.de>
  • Loading branch information
timostamm committed Aug 30, 2024
1 parent c6bdfb2 commit fe5cf1f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/conformance-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
key: ${{ runner.os }}/web-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/web-conformance
- run: npm ci
- run: npx turbo run conformance:client:${{matrix.browser}}:${{matrix.client}} --output-logs new-only --log-order stream
- run: npx turbo run conformance:${{matrix.browser}}:${{matrix.client}} --filter '@connectrpc/connect-web' --output-logs new-only --log-order stream
node:
runs-on: ubuntu-22.04
strategy:
Expand All @@ -61,4 +61,4 @@ jobs:
key: ${{ runner.os }}/web-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/web-conformance
- run: npm ci
- run: npx turbo run conformance:client:node:${{matrix.client}} --output-logs new-only --log-order stream
- run: npx turbo run conformance:node:${{matrix.client}} --filter '@connectrpc/connect-web' --output-logs new-only --log-order stream
4 changes: 2 additions & 2 deletions packages/connect-web/conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ For every environment, two client flavors are available:

For every combination, a task is available:

`npx turbo run conformance:client:<chrome|firefox|safari|node>:<promise|callback>`
`npx turbo run conformance:<chrome|firefox|safari|node>:<promise|callback>`

## Using a local browser

To launch a browser window with access to the browser's network inspector, append the `--openBrowser` flag to the npm script:

```
npx turbo run conformance:client:chrome:promise -- --openBrowser
npx turbo run conformance:chrome:promise -- --openBrowser
```
18 changes: 9 additions & 9 deletions packages/connect-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"conformance:client:safari": "npm run conformance:client:safari:promise && npm run conformance:client:safari:callback",
"conformance:client:safari:promise": "connectconformance --mode client --conf ./conformance/conformance-web.yaml -- tsx ./conformance/client.ts --browser safari",
"conformance:client:safari:callback": "connectconformance --mode client --conf ./conformance/conformance-web.yaml --known-failing @./conformance/known-failing-callback-client.txt -- tsx ./conformance/client.ts --browser safari --useCallbackClient",
"conformance:client:chrome:promise": "connectconformance --mode client --conf ./conformance/conformance-web.yaml -- tsx ./conformance/client.ts --browser chrome",
"conformance:client:chrome:callback": "connectconformance --mode client --conf ./conformance/conformance-web.yaml --known-failing @./conformance/known-failing-callback-client.txt -- tsx ./conformance/client.ts --browser chrome --useCallbackClient",
"conformance:client:firefox:promise": "connectconformance --mode client --conf ./conformance/conformance-web.yaml -- tsx ./conformance/client.ts --browser firefox",
"conformance:client:firefox:callback": "connectconformance --mode client --conf ./conformance/conformance-web.yaml --known-failing @./conformance/known-failing-callback-client.txt -- tsx ./conformance/client.ts --browser firefox --useCallbackClient",
"conformance:client:node:promise": "connectconformance --mode client --conf ./conformance/conformance-web-node.yaml -- tsx ./conformance/client.ts --browser node",
"conformance:client:node:callback": "connectconformance --mode client --conf ./conformance/conformance-web-node.yaml --known-failing @./conformance/known-failing-callback-client.txt -- tsx ./conformance/client.ts --browser node --useCallbackClient",
"conformance:client:safari": "npm run conformance:safari:promise && npm run conformance:client:safari:callback",
"conformance:safari:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser safari",
"conformance:client:safari:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml --known-failing @conformance/known-failing-callback-client.txt -- tsx conformance/client.ts --browser safari --useCallbackClient",
"conformance:chrome:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser chrome",
"conformance:chrome:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml --known-failing @conformance/known-failing-callback-client.txt -- tsx conformance/client.ts --browser chrome --useCallbackClient",
"conformance:firefox:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser firefox",
"conformance:firefox:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml --known-failing @conformance/known-failing-callback-client.txt -- tsx conformance/client.ts --browser firefox --useCallbackClient",
"conformance:node:promise": "connectconformance --mode client --conf conformance/conformance-web-node.yaml -- tsx conformance/client.ts --browser node",
"conformance:node:callback": "connectconformance --mode client --conf conformance/conformance-web-node.yaml --known-failing @conformance/known-failing-callback-client.txt -- tsx conformance/client.ts --browser node --useCallbackClient",
"test": "jasmine --config=jasmine.json",
"generate": "buf generate --template browserstack/buf.gen.yaml",
"postgenerate": "license-header browserstack/gen",
Expand Down
28 changes: 14 additions & 14 deletions packages/connect-web/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,48 @@
},
"conformance": {
"dependsOn": [
"conformance:client:safari",
"conformance:client:chrome:promise",
"conformance:client:chrome:callback",
"conformance:client:firefox:promise",
"conformance:client:firefox:callback",
"conformance:client:node:promise",
"conformance:client:node:callback"
"conformance:safari",
"conformance:chrome:promise",
"conformance:chrome:callback",
"conformance:firefox:promise",
"conformance:firefox:callback",
"conformance:node:promise",
"conformance:node:callback"
]
},
"conformance:client:safari": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:safari:promise": {
"conformance:safari:promise": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:safari:callback": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:chrome:promise": {
"conformance:chrome:promise": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:chrome:callback": {
"conformance:chrome:callback": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:firefox:promise": {
"conformance:firefox:promise": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:firefox:callback": {
"conformance:firefox:callback": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:node:promise": {
"conformance:node:promise": {
"cache": false,
"dependsOn": ["^build"]
},
"conformance:client:node:callback": {
"conformance:node:callback": {
"cache": false,
"dependsOn": ["^build"]
}
Expand Down

0 comments on commit fe5cf1f

Please sign in to comment.