Skip to content

Commit

Permalink
Merge branch 'main' into dt-possible-types-dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jan 6, 2024
2 parents 7a547d8 + 6fbc5b8 commit 1671888
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]

name: πŸ— Build, lint, test / ${{ matrix.os }} / node 18 latest
name: πŸ— Build, lint, test / ${{ matrix.os }} / node 20 latest
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]

name: πŸ— Build, lint, test / ${{ matrix.os }} / node 18 latest
name: πŸ— Build, lint, test / ${{ matrix.os }} / node 20 latest
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -157,7 +157,7 @@ jobs:
matrix:
bundler: [vite, webpack]

name: 🌲 Tutorial E2E / ${{ matrix.bundler }} / node 18 latest
name: 🌲 Tutorial E2E / ${{ matrix.bundler }} / node 20 latest
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
matrix:
bundler: [vite, webpack]

name: 🌲 Tutorial E2E / ${{ matrix.bundler }} / node 18 latest
name: 🌲 Tutorial E2E / ${{ matrix.bundler }} / node 20 latest
runs-on: ubuntu-latest

steps:
Expand All @@ -249,7 +249,7 @@ jobs:
os: [ubuntu-latest, windows-latest]
bundler: [vite, webpack]

name: πŸ”„ Smoke tests / ${{ matrix.os }} / ${{ matrix.bundler }} / node 18 latest
name: πŸ”„ Smoke tests / ${{ matrix.os }} / ${{ matrix.bundler }} / node 20 latest
runs-on: ${{ matrix.os }}

env:
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
#
# ```
# env:
# RECORD_REPLAY_METADATA_TEST_RUN_TITLE: πŸ”„ Smoke tests / ${{ matrix.os }} / node 18 latest
# RECORD_REPLAY_METADATA_TEST_RUN_TITLE: πŸ”„ Smoke tests / ${{ matrix.os }} / node 20 latest
# RECORD_REPLAY_TEST_METRICS: 1
# ```
#
Expand All @@ -446,7 +446,7 @@ jobs:
os: [ubuntu-latest, windows-latest]
bundler: [vite, webpack]

name: πŸ”„ Smoke tests / ${{ matrix.os }} / ${{ matrix.bundler }} / node 18 latest
name: πŸ”„ Smoke tests / ${{ matrix.os }} / ${{ matrix.bundler }} / node 20 latest
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -459,7 +459,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]

name: πŸ”­ Telemetry check / ${{ matrix.os }} / node 18 latest
name: πŸ”­ Telemetry check / ${{ matrix.os }} / node 20 latest
runs-on: ${{ matrix.os }}

env:
Expand Down Expand Up @@ -506,7 +506,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]

name: πŸ”­ Telemetry check / ${{ matrix.os }} / node 18 latest
name: πŸ”­ Telemetry check / ${{ matrix.os }} / node 20 latest
runs-on: ${{ matrix.os }}

steps:
Expand Down
7 changes: 6 additions & 1 deletion tasks/test-project/typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ export interface TuiTaskDef {
}

export function isAwaitable(promise: unknown): promise is Promise<unknown> {
return typeof promise !== 'undefined' && 'then' in promise
return (
!!promise &&
typeof promise === 'object' &&
'then' in promise &&
typeof promise.then === 'function'
)
}

0 comments on commit 1671888

Please sign in to comment.