mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add run tests step to Windows pipeline (#1610)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
2062b376a0
commit
b128f55006
@ -41,10 +41,12 @@ jobs:
|
|||||||
displayName: Generate npm package
|
displayName: Generate npm package
|
||||||
- script: make -j2 build-extensions
|
- script: make -j2 build-extensions
|
||||||
displayName: Build bundled extensions
|
displayName: Build bundled extensions
|
||||||
- script: make integration-win
|
- script: make test
|
||||||
displayName: Run integration tests
|
displayName: Run tests
|
||||||
- script: make test-extensions
|
- script: make test-extensions
|
||||||
displayName: Run In-tree Extension tests
|
displayName: Run In-tree Extension tests
|
||||||
|
- script: make integration-win
|
||||||
|
displayName: Run integration tests
|
||||||
- script: make build
|
- script: make build
|
||||||
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
displayName: Build
|
displayName: Build
|
||||||
|
|||||||
@ -32,6 +32,7 @@ import { getFreePort } from "../port";
|
|||||||
import fse from "fs-extra";
|
import fse from "fs-extra";
|
||||||
import { loadYaml } from "@kubernetes/client-node";
|
import { loadYaml } from "@kubernetes/client-node";
|
||||||
import { Console } from "console";
|
import { Console } from "console";
|
||||||
|
import * as path from "path";
|
||||||
|
|
||||||
console = new Console(process.stdout, process.stderr); // fix mockFS
|
console = new Console(process.stdout, process.stderr); // fix mockFS
|
||||||
|
|
||||||
@ -84,7 +85,7 @@ describe("kubeconfig manager tests", () => {
|
|||||||
const kubeConfManager = await KubeconfigManager.create(cluster, contextHandler, port);
|
const kubeConfManager = await KubeconfigManager.create(cluster, contextHandler, port);
|
||||||
|
|
||||||
expect(logger.error).not.toBeCalled();
|
expect(logger.error).not.toBeCalled();
|
||||||
expect(kubeConfManager.getPath()).toBe("tmp/kubeconfig-foo");
|
expect(kubeConfManager.getPath()).toBe(`tmp${path.sep}kubeconfig-foo`);
|
||||||
const file = await fse.readFile(kubeConfManager.getPath());
|
const file = await fse.readFile(kubeConfManager.getPath());
|
||||||
const yml = loadYaml<any>(file.toString());
|
const yml = loadYaml<any>(file.toString());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user