Skip to content

Commit

Permalink
test: add windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Mar 11, 2024
1 parent 2ca0878 commit d1d9773
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
docker:
image: docker:latest

name: 'Node ${{ matrix.node-version }}'
name: 'Linux + Node ${{ matrix.node-version }}'
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
]
runs-on: windows-latest

name: 'Node ${{ matrix.node-version }}'
name: 'Windows + Node ${{ matrix.node-version }}'
steps:
- uses: actions/checkout@v4

Expand Down
15 changes: 14 additions & 1 deletion test/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,21 @@ describe("Dev tests", () => {

//
describe("Check zksync-cli dev", () => {

it("npx zksync-cli dev config", () => {
let command: string;
if( process.platform === "win32" ) {
command = "echo y | npx zksync-cli dev config"
} else {
command = "yes | npx zksync-cli dev config";
}
const result = executeCommand(command);
console.log(result.output);
expect(result.exitCode).toBe(0);
});

it("npx zksync-cli dev start", () => {
const command = "yes | npx zksync-cli dev start";
const command = "npx zksync-cli dev start";
const result = executeCommand(command);
// console.log(result.output);
expect(result.exitCode).toBe(0);
Expand Down

0 comments on commit d1d9773

Please sign in to comment.