Skip to content

Commit

Permalink
feat: add @playwright/test dependency and update testing command erro…
Browse files Browse the repository at this point in the history
…r handling
  • Loading branch information
DE7924 committed Dec 13, 2024
1 parent 9561e12 commit 5784c34
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.0",
"@playwright/test": "^1.49.1",
"actions-toolkit": "^6.0.1",
"minimist": "^1.2.8",
"octokit": "^4.0.2",
Expand Down
6 changes: 3 additions & 3 deletions src/scripts/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import { stepResponse, buildComment } from "src/main";
import { exec } from "@actions/exec";

export const testing = async (): Promise<stepResponse> => {
const runCommand = (command: string): Promise<string> => {
const runCommand = async (command: string): Promise<string> => {
return new Promise((resolve, reject) => {
exec(command, [], {
listeners: {
stdout: (data: Buffer) => {
resolve(data.toString());
},
stderr: (data: Buffer) => {
reject(data.toString());
reject(new Error(data.toString()));
},
},
}).catch((error: any) => {
}).catch((error: Error) => {
reject(error);
});
});
Expand Down

0 comments on commit 5784c34

Please sign in to comment.