mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
Adds typechecking with typescript (#2101)
* Fixes all other vue errors * Adds typescheck * Fix pnpm * Fix pnpm again for cache
This commit is contained in:
18
.github/workflows/deploy.yml
vendored
18
.github/workflows/deploy.yml
vendored
@@ -10,14 +10,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
- name: Install pnpm
|
cache: pnpm
|
||||||
uses: pnpm/action-setup@v2.2.4
|
|
||||||
with:
|
|
||||||
version: 7.26.0
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
@@ -80,14 +81,15 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
- name: Install pnpm
|
cache: pnpm
|
||||||
uses: pnpm/action-setup@v2.2.4
|
|
||||||
with:
|
|
||||||
version: 6.20.1
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Release to Github
|
- name: Release to Github
|
||||||
|
|||||||
26
.github/workflows/test.yml
vendored
26
.github/workflows/test.yml
vendored
@@ -7,20 +7,38 @@ on:
|
|||||||
- master
|
- master
|
||||||
name: Test
|
name: Test
|
||||||
jobs:
|
jobs:
|
||||||
|
typecheck:
|
||||||
|
name: Typecheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: latest
|
||||||
|
cache: pnpm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
- name: Run Typecheck
|
||||||
|
run: pnpm run typecheck
|
||||||
npm-test:
|
npm-test:
|
||||||
name: JavaScript Tests
|
name: JavaScript Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
- name: Install pnpm
|
cache: pnpm
|
||||||
uses: pnpm/action-setup@v2.2.4
|
|
||||||
with:
|
|
||||||
version: 7.26.0
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ const mutationObserver = new MutationObserver((e) => {
|
|||||||
scrollToBottom();
|
scrollToBottom();
|
||||||
} else {
|
} else {
|
||||||
const record = e[e.length - 1];
|
const record = e[e.length - 1];
|
||||||
if (record.target.children[record.target.children.length - 1] == record.addedNodes[record.addedNodes.length - 1]) {
|
const children = (record.target as HTMLElement).children;
|
||||||
|
if (children[children.length - 1] == record.addedNodes[record.addedNodes.length - 1]) {
|
||||||
hasMore = true;
|
hasMore = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,6 +127,10 @@ export class SkippedLogsEntry extends LogEntry<string> {
|
|||||||
public get totalSkipped(): number {
|
public get totalSkipped(): number {
|
||||||
return this._totalSkipped;
|
return this._totalSkipped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get lastSkippedItem(): LogEntry<string | JSONObject> {
|
||||||
|
return this.lastSkipped;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function asLogEntry(event: LogEvent): LogEntry<string | JSONObject> {
|
export function asLogEntry(event: LogEvent): LogEntry<string | JSONObject> {
|
||||||
|
|||||||
Reference in New Issue
Block a user