mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 11:34:35 +00:00
fix(ignore): bump typescript from 5.9.3 to 6.0.2 (#1112)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Koen Kanters <koenkanters94@gmail.com> Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://biomejs.dev/schemas/2.4.6/schema.json",
|
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
|
||||||
"vcs": {
|
"vcs": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"clientKind": "git",
|
"clientKind": "git",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"@octokit/rest": "^22.0.1",
|
"@octokit/rest": "^22.0.1",
|
||||||
"@types/node": "^25.6.0",
|
"@types/node": "^25.6.0",
|
||||||
"@vitest/coverage-v8": "^3.2.4",
|
"@vitest/coverage-v8": "^3.2.4",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^6.0.2",
|
||||||
"vitest": "^3.2.4"
|
"vitest": "^3.2.4"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -31,8 +31,8 @@ importers:
|
|||||||
specifier: ^3.2.4
|
specifier: ^3.2.4
|
||||||
version: 3.2.4(vitest@3.2.4(@types/node@25.6.0))
|
version: 3.2.4(vitest@3.2.4(@types/node@25.6.0))
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ^5.9.3
|
specifier: ^6.0.2
|
||||||
version: 5.9.3
|
version: 6.0.2
|
||||||
vitest:
|
vitest:
|
||||||
specifier: ^3.2.4
|
specifier: ^3.2.4
|
||||||
version: 3.2.4(@types/node@25.6.0)
|
version: 3.2.4(@types/node@25.6.0)
|
||||||
@@ -838,8 +838,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}
|
resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}
|
||||||
engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}
|
engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}
|
||||||
|
|
||||||
typescript@5.9.3:
|
typescript@6.0.2:
|
||||||
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==}
|
||||||
engines: {node: '>=14.17'}
|
engines: {node: '>=14.17'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
@@ -1662,7 +1662,7 @@ snapshots:
|
|||||||
|
|
||||||
tunnel@0.0.6: {}
|
tunnel@0.0.6: {}
|
||||||
|
|
||||||
typescript@5.9.3: {}
|
typescript@6.0.2: {}
|
||||||
|
|
||||||
undici-types@7.19.2: {}
|
undici-types@7.19.2: {}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export async function download(): Promise<void> {
|
|||||||
|
|
||||||
const appUrl: ImagesJsonBuildPart | undefined = page.builds[0].parts.find((part) => part.type === "app");
|
const appUrl: ImagesJsonBuildPart | undefined = page.builds[0].parts.find((part) => part.type === "app");
|
||||||
|
|
||||||
if (!appUrl || !appUrl.ota) {
|
if (!appUrl?.ota) {
|
||||||
console.error(`${logPrefix} No image found.`);
|
console.error(`${logPrefix} No image found.`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {existsSync} from "node:fs";
|
import {existsSync} from "node:fs";
|
||||||
import {join} from "node:path";
|
import {join} from "node:path";
|
||||||
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, PREV_INDEX_MANIFEST_FILENAME, REPO_BRANCH, readManifest} from "./common";
|
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, PREV_INDEX_MANIFEST_FILENAME, REPO_BRANCH, readManifest} from "./common.js";
|
||||||
|
|
||||||
const baseManifest = readManifest(BASE_INDEX_MANIFEST_FILENAME);
|
const baseManifest = readManifest(BASE_INDEX_MANIFEST_FILENAME);
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {exec} from "node:child_process";
|
|||||||
import {createHash} from "node:crypto";
|
import {createHash} from "node:crypto";
|
||||||
import {existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync} from "node:fs";
|
import {existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type {ExtraMetas, ExtraMetasWithFileName, ImageHeader, RepoImageMeta} from "./types";
|
import type {ExtraMetas, ExtraMetasWithFileName, ImageHeader, RepoImageMeta} from "./types.js";
|
||||||
|
|
||||||
export const UPGRADE_FILE_IDENTIFIER = Buffer.from([0x1e, 0xf1, 0xee, 0x0b]);
|
export const UPGRADE_FILE_IDENTIFIER = Buffer.from([0x1e, 0xf1, 0xee, 0x0b]);
|
||||||
export const BASE_REPO_URL = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/";
|
export const BASE_REPO_URL = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {BASE_INDEX_MANIFEST_FILENAME, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common";
|
import {BASE_INDEX_MANIFEST_FILENAME, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common.js";
|
||||||
import type {RepoImageMeta} from "./types";
|
import type {RepoImageMeta} from "./types.js";
|
||||||
|
|
||||||
const USAGE = `Usage: tsx src/find_matches.ts <BASE|PREV> <imageType> <manufacturerCode> [modelId] [manufacturerName]
|
const USAGE = `Usage: tsx src/find_matches.ts <BASE|PREV> <imageType> <manufacturerCode> [modelId] [manufacturerName]
|
||||||
Examples:
|
Examples:
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import assert from "node:assert";
|
import assert from "node:assert";
|
||||||
import {existsSync, mkdirSync, writeFileSync} from "node:fs";
|
import {existsSync, mkdirSync, writeFileSync} from "node:fs";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -17,6 +16,7 @@ import {
|
|||||||
} from "./common.js";
|
} from "./common.js";
|
||||||
import {getChangedOtaFiles} from "./ghw_get_changed_ota_files.js";
|
import {getChangedOtaFiles} from "./ghw_get_changed_ota_files.js";
|
||||||
import {processOtaFiles} from "./ghw_process_ota_files.js";
|
import {processOtaFiles} from "./ghw_process_ota_files.js";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
function throwError(comment: string): void {
|
function throwError(comment: string): void {
|
||||||
writeFileSync(PR_ARTIFACT_ERROR_FILEPATH, comment);
|
writeFileSync(PR_ARTIFACT_ERROR_FILEPATH, comment);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import {readdirSync, readFileSync, writeFileSync} from "node:fs";
|
import {readdirSync, readFileSync, writeFileSync} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
export const CACERTS_DIR = "cacerts";
|
export const CACERTS_DIR = "cacerts";
|
||||||
export const CACERTS_CONCAT_FILEPATH = "cacerts.pem";
|
export const CACERTS_CONCAT_FILEPATH = "cacerts.pem";
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
import {BASE_IMAGES_DIR, BASE_INDEX_MANIFEST_FILENAME, execute, PREV_IMAGES_DIR, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common.js";
|
import {BASE_IMAGES_DIR, BASE_INDEX_MANIFEST_FILENAME, execute, PREV_IMAGES_DIR, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common.js";
|
||||||
import type {RepoImageMeta} from "./types.js";
|
import type {Context, RepoImageMeta} from "./types.js";
|
||||||
|
|
||||||
// about 3 lines
|
// about 3 lines
|
||||||
const MAX_RELEASE_NOTES_LENGTH = 380;
|
const MAX_RELEASE_NOTES_LENGTH = 380;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import assert from "node:assert";
|
import assert from "node:assert";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
const IGNORE_OTA_WORKFLOW_LABEL = "ignore-ota-workflow";
|
const IGNORE_OTA_WORKFLOW_LABEL = "ignore-ota-workflow";
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import assert from "node:assert";
|
import assert from "node:assert";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
|
||||||
import {BASE_IMAGES_DIR} from "./common.js";
|
import {BASE_IMAGES_DIR} from "./common.js";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
export async function getChangedOtaFiles(
|
export async function getChangedOtaFiles(
|
||||||
github: Octokit,
|
github: Octokit,
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import {readFileSync, writeFileSync} from "node:fs";
|
import {readFileSync, writeFileSync} from "node:fs";
|
||||||
import {join} from "node:path";
|
import {join} from "node:path";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
|
||||||
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, parseImageHeader, REPO_BRANCH, readManifest, UPGRADE_FILE_IDENTIFIER} from "./common.js";
|
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, parseImageHeader, REPO_BRANCH, readManifest, UPGRADE_FILE_IDENTIFIER} from "./common.js";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
enum ZigbeeStackVersion {
|
enum ZigbeeStackVersion {
|
||||||
Zigbee2006 = 0x0000,
|
Zigbee2006 = 0x0000,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {existsSync, mkdirSync} from "node:fs";
|
import {existsSync, mkdirSync} from "node:fs";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
|
||||||
import {ALL_AUTODL_MANUFACTURERS, CACHE_DIR} from "./common.js";
|
import {ALL_AUTODL_MANUFACTURERS, CACHE_DIR} from "./common.js";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
export async function overwriteCache(_github: Octokit, core: typeof CoreApi, _context: Context, manufacturersCSV?: string): Promise<void> {
|
export async function overwriteCache(_github: Octokit, core: typeof CoreApi, _context: Context, manufacturersCSV?: string): Promise<void> {
|
||||||
if (!existsSync(CACHE_DIR)) {
|
if (!existsSync(CACHE_DIR)) {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import assert from "node:assert";
|
|||||||
import {readFileSync, renameSync} from "node:fs";
|
import {readFileSync, renameSync} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
import {
|
import {
|
||||||
addImageToBase,
|
addImageToBase,
|
||||||
@@ -17,7 +16,7 @@ import {
|
|||||||
parseImageHeader,
|
parseImageHeader,
|
||||||
UPGRADE_FILE_IDENTIFIER,
|
UPGRADE_FILE_IDENTIFIER,
|
||||||
} from "./common.js";
|
} from "./common.js";
|
||||||
import type {ExtraMetas, GHExtraMetas, RepoImageMeta} from "./types.js";
|
import type {Context, ExtraMetas, GHExtraMetas, RepoImageMeta} from "./types.js";
|
||||||
|
|
||||||
const GLEDOPTO_MANUFACTURER_CODE = 4687;
|
const GLEDOPTO_MANUFACTURER_CODE = 4687;
|
||||||
const TUYA_MANUFACTURER_CODE_1 = 4098;
|
const TUYA_MANUFACTURER_CODE_1 = 4098;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import assert from "node:assert";
|
import assert from "node:assert";
|
||||||
import {existsSync, readFileSync, writeFileSync} from "node:fs";
|
import {existsSync, readFileSync, writeFileSync} from "node:fs";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
|
||||||
import {execute, PR_ARTIFACT_DIR, PR_DIFF_FILENAME, PR_ERROR_FILENAME, PR_NUMBER_FILENAME} from "./common.js";
|
import {execute, PR_ARTIFACT_DIR, PR_DIFF_FILENAME, PR_ERROR_FILENAME, PR_NUMBER_FILENAME} from "./common.js";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
export async function reportOtaPR(github: Octokit, core: typeof CoreApi, context: Context): Promise<void> {
|
export async function reportOtaPR(github: Octokit, core: typeof CoreApi, context: Context): Promise<void> {
|
||||||
assert(context.payload.workflow_run, "Not a workflow run");
|
assert(context.payload.workflow_run, "Not a workflow run");
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import {existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync} from "node:fs";
|
import {existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
import {
|
import {
|
||||||
addImageToBase,
|
addImageToBase,
|
||||||
@@ -24,7 +23,7 @@ import {
|
|||||||
UPGRADE_FILE_IDENTIFIER,
|
UPGRADE_FILE_IDENTIFIER,
|
||||||
writeManifest,
|
writeManifest,
|
||||||
} from "./common.js";
|
} from "./common.js";
|
||||||
import type {RepoImageMeta} from "./types";
|
import type {Context, RepoImageMeta} from "./types.js";
|
||||||
|
|
||||||
/** These are now handled by autodl */
|
/** These are now handled by autodl */
|
||||||
const IGNORE_3RD_PARTIES = ["https://github.com/fairecasoimeme/", "https://github.com/xyzroe/"];
|
const IGNORE_3RD_PARTIES = ["https://github.com/fairecasoimeme/", "https://github.com/xyzroe/"];
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {existsSync, mkdirSync, rmSync} from "node:fs";
|
import {existsSync, mkdirSync, rmSync} from "node:fs";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
|
||||||
import {ALL_AUTODL_MANUFACTURERS, BASE_INDEX_MANIFEST_FILENAME, CACHE_DIR, PREV_INDEX_MANIFEST_FILENAME, TMP_DIR, writeManifest} from "./common.js";
|
import {ALL_AUTODL_MANUFACTURERS, BASE_INDEX_MANIFEST_FILENAME, CACHE_DIR, PREV_INDEX_MANIFEST_FILENAME, TMP_DIR, writeManifest} from "./common.js";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
export async function runAutodl(_github: Octokit, core: typeof CoreApi, _context: Context, manufacturersCSV?: string): Promise<void> {
|
export async function runAutodl(_github: Octokit, core: typeof CoreApi, _context: Context, manufacturersCSV?: string): Promise<void> {
|
||||||
const manufacturers = manufacturersCSV ? manufacturersCSV.trim().split(",") : ALL_AUTODL_MANUFACTURERS;
|
const manufacturers = manufacturersCSV ? manufacturersCSV.trim().split(",") : ALL_AUTODL_MANUFACTURERS;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import assert from "node:assert";
|
import assert from "node:assert";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
|
|
||||||
import {BASE_INDEX_MANIFEST_FILENAME, PREV_INDEX_MANIFEST_FILENAME, readManifest, writeManifest} from "./common.js";
|
import {BASE_INDEX_MANIFEST_FILENAME, PREV_INDEX_MANIFEST_FILENAME, readManifest, writeManifest} from "./common.js";
|
||||||
import {getChangedOtaFiles} from "./ghw_get_changed_ota_files.js";
|
import {getChangedOtaFiles} from "./ghw_get_changed_ota_files.js";
|
||||||
import {processOtaFiles} from "./ghw_process_ota_files.js";
|
import {processOtaFiles} from "./ghw_process_ota_files.js";
|
||||||
|
import type {Context} from "./types.js";
|
||||||
|
|
||||||
export async function updateManifests(github: Octokit, core: typeof CoreApi, context: Context): Promise<void> {
|
export async function updateManifests(github: Octokit, core: typeof CoreApi, context: Context): Promise<void> {
|
||||||
assert(context.eventName === "push", "Not a push");
|
assert(context.eventName === "push", "Not a push");
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import {
|
|||||||
UPGRADE_FILE_IDENTIFIER,
|
UPGRADE_FILE_IDENTIFIER,
|
||||||
writeManifest,
|
writeManifest,
|
||||||
} from "./common.js";
|
} from "./common.js";
|
||||||
import type {ExtraMetas} from "./types";
|
import type {ExtraMetas} from "./types.js";
|
||||||
|
|
||||||
export enum ProcessFirmwareImageStatus {
|
export enum ProcessFirmwareImageStatus {
|
||||||
Error = -1,
|
Error = -1,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// XXX: workaround, `Context` no longer exported in v9+
|
||||||
|
import type {context as githubContext} from "@actions/github";
|
||||||
|
export type Context = typeof githubContext;
|
||||||
|
|
||||||
//-- Copied from ZHC
|
//-- Copied from ZHC
|
||||||
export interface Version {
|
export interface Version {
|
||||||
imageType: number;
|
imageType: number;
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
import {copyFileSync, existsSync, mkdirSync} from "node:fs";
|
import {copyFileSync, existsSync, mkdirSync} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import {it} from "vitest";
|
import {it} from "vitest";
|
||||||
import * as common from "../src/common";
|
import * as common from "../src/common.js";
|
||||||
import type {ExtraMetas, RepoImageMeta} from "../src/types";
|
import type {ExtraMetas, RepoImageMeta} from "../src/types.js";
|
||||||
|
|
||||||
export const IMAGE_LUMI = "20240726111155_OTA_lumi.switch.n1aeu1_0.0.0_0025_20240725_8F4299.ota";
|
export const IMAGE_LUMI = "20240726111155_OTA_lumi.switch.n1aeu1_0.0.0_0025_20240725_8F4299.ota";
|
||||||
export const IMAGE_GLEDOPTO = "GL-B-008P_V17A1_OTAV7.ota";
|
export const IMAGE_GLEDOPTO = "GL-B-008P_V17A1_OTAV7.ota";
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
import {existsSync, readFileSync, rmSync, writeFileSync} from "node:fs";
|
import {existsSync, readFileSync, rmSync, writeFileSync} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
||||||
import * as common from "../src/common";
|
import * as common from "../src/common.js";
|
||||||
import {checkOtaPR} from "../src/ghw_check_ota_pr";
|
import {checkOtaPR} from "../src/ghw_check_ota_pr.js";
|
||||||
import type {RepoImageMeta} from "../src/types";
|
import type {Context, RepoImageMeta} from "../src/types.js";
|
||||||
import {
|
import {
|
||||||
BASE_IMAGES_TEST_DIR_PATH,
|
BASE_IMAGES_TEST_DIR_PATH,
|
||||||
getAdjustedContent,
|
getAdjustedContent,
|
||||||
@@ -29,7 +28,7 @@ import {
|
|||||||
PREV_IMAGES_TEST_DIR_PATH,
|
PREV_IMAGES_TEST_DIR_PATH,
|
||||||
useImage,
|
useImage,
|
||||||
withExtraMetas,
|
withExtraMetas,
|
||||||
} from "./data.test";
|
} from "./data.test.js";
|
||||||
|
|
||||||
const github = {
|
const github = {
|
||||||
rest: {
|
rest: {
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
import {copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync} from "node:fs";
|
import {copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
||||||
import * as common from "../src/common";
|
import * as common from "../src/common.js";
|
||||||
import {
|
import {
|
||||||
NOT_IN_BASE_MANIFEST_IMAGES_DIR,
|
NOT_IN_BASE_MANIFEST_IMAGES_DIR,
|
||||||
NOT_IN_MANIFEST_FILENAME,
|
NOT_IN_MANIFEST_FILENAME,
|
||||||
NOT_IN_PREV_MANIFEST_IMAGES_DIR,
|
NOT_IN_PREV_MANIFEST_IMAGES_DIR,
|
||||||
reProcessAllImages,
|
reProcessAllImages,
|
||||||
} from "../src/ghw_reprocess_all_images";
|
} from "../src/ghw_reprocess_all_images.js";
|
||||||
import type {RepoImageMeta} from "../src/types";
|
import type {Context, RepoImageMeta} from "../src/types.js";
|
||||||
import {
|
import {
|
||||||
BASE_IMAGES_TEST_DIR_PATH,
|
BASE_IMAGES_TEST_DIR_PATH,
|
||||||
getAdjustedContent,
|
getAdjustedContent,
|
||||||
@@ -26,7 +25,7 @@ import {
|
|||||||
PREV_IMAGES_TEST_DIR_PATH,
|
PREV_IMAGES_TEST_DIR_PATH,
|
||||||
useImage,
|
useImage,
|
||||||
withExtraMetas,
|
withExtraMetas,
|
||||||
} from "./data.test";
|
} from "./data.test.js";
|
||||||
|
|
||||||
/** not used */
|
/** not used */
|
||||||
const github = {};
|
const github = {};
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import {rmSync} from "node:fs";
|
import {rmSync} from "node:fs";
|
||||||
import type * as CoreApi from "@actions/core";
|
import type * as CoreApi from "@actions/core";
|
||||||
import type {Context} from "@actions/github/lib/context";
|
|
||||||
import type {Octokit} from "@octokit/rest";
|
import type {Octokit} from "@octokit/rest";
|
||||||
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
||||||
import * as common from "../src/common";
|
import * as common from "../src/common.js";
|
||||||
import {updateManifests} from "../src/ghw_update_manifests";
|
import {updateManifests} from "../src/ghw_update_manifests.js";
|
||||||
import type {RepoImageMeta} from "../src/types";
|
import type {Context, RepoImageMeta} from "../src/types.js";
|
||||||
import {
|
import {
|
||||||
BASE_IMAGES_TEST_DIR_PATH,
|
BASE_IMAGES_TEST_DIR_PATH,
|
||||||
getAdjustedContent,
|
getAdjustedContent,
|
||||||
@@ -15,7 +14,7 @@ import {
|
|||||||
PREV_IMAGES_TEST_DIR_PATH,
|
PREV_IMAGES_TEST_DIR_PATH,
|
||||||
useImage,
|
useImage,
|
||||||
withExtraMetas,
|
withExtraMetas,
|
||||||
} from "./data.test";
|
} from "./data.test.js";
|
||||||
|
|
||||||
const github = {
|
const github = {
|
||||||
rest: {
|
rest: {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import {existsSync, mkdirSync, readFileSync, rmSync} from "node:fs";
|
import {existsSync, mkdirSync, readFileSync, rmSync} from "node:fs";
|
||||||
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
|
||||||
import * as common from "../src/common";
|
import * as common from "../src/common.js";
|
||||||
import {ProcessFirmwareImageStatus, processFirmwareImage} from "../src/process_firmware_image";
|
import {ProcessFirmwareImageStatus, processFirmwareImage} from "../src/process_firmware_image.js";
|
||||||
import type {RepoImageMeta} from "../src/types";
|
import type {RepoImageMeta} from "../src/types.js";
|
||||||
import {
|
import {
|
||||||
BASE_IMAGES_TEST_DIR_PATH,
|
BASE_IMAGES_TEST_DIR_PATH,
|
||||||
getAdjustedContent,
|
getAdjustedContent,
|
||||||
@@ -20,7 +20,7 @@ import {
|
|||||||
PREV_IMAGES_TEST_DIR_PATH,
|
PREV_IMAGES_TEST_DIR_PATH,
|
||||||
useImage,
|
useImage,
|
||||||
withExtraMetas,
|
withExtraMetas,
|
||||||
} from "./data.test";
|
} from "./data.test.js";
|
||||||
|
|
||||||
describe("Process Firmware Image", () => {
|
describe("Process Firmware Image", () => {
|
||||||
let baseManifest: RepoImageMeta[];
|
let baseManifest: RepoImageMeta[];
|
||||||
|
|||||||
@@ -2,10 +2,11 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"module": "ESNext",
|
"module": "nodenext",
|
||||||
"moduleResolution": "node10",
|
"moduleResolution": "nodenext",
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"lib": ["ESNext"],
|
"lib": ["ESNext"],
|
||||||
|
"types": ["node"],
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user