Skip to content

Commit 5784c34

Browse files
committed
feat: add @playwright/test dependency and update testing command error handling
1 parent 9561e12 commit 5784c34

File tree

5 files changed

+67
-6
lines changed

5 files changed

+67
-6
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"dependencies": {
7575
"@actions/core": "^1.11.1",
7676
"@actions/github": "^6.0.0",
77+
"@playwright/test": "^1.49.1",
7778
"actions-toolkit": "^6.0.1",
7879
"minimist": "^1.2.8",
7980
"octokit": "^4.0.2",

src/scripts/testing.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import { stepResponse, buildComment } from "src/main";
33
import { exec } from "@actions/exec";
44

55
export const testing = async (): Promise<stepResponse> => {
6-
const runCommand = (command: string): Promise<string> => {
6+
const runCommand = async (command: string): Promise<string> => {
77
return new Promise((resolve, reject) => {
88
exec(command, [], {
99
listeners: {
1010
stdout: (data: Buffer) => {
1111
resolve(data.toString());
1212
},
1313
stderr: (data: Buffer) => {
14-
reject(data.toString());
14+
reject(new Error(data.toString()));
1515
},
1616
},
17-
}).catch((error: any) => {
17+
}).catch((error: Error) => {
1818
reject(error);
1919
});
2020
});

0 commit comments

Comments
 (0)