Skip to content

Commit 1f7b17a

Browse files
committed
ci: refactoring the tests-report step into their own ECMAscript module
1 parent 0b23e82 commit 1f7b17a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/actions-scripts-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
const { default: testReportOnPrComment } =
4848
await import('${{ github.workspace }}/actions_scripts/tests_report_on_pr_comment.js');
4949
50-
await testReportOnPrComment(github, context, steps);
50+
await testReportOnPrComment({github, context, steps});

actions_scripts/tests_report_on_pr_comment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import { ciLocalRun, getRepoOwner } from "./helpers.js";
44
* Generates a new comment on the PR that triggered the workflow with the
55
* report of the tests runned by 'JEST' over the actions scripts
66
*/
7-
export default async (github, context, steps) => {
7+
export default async ({github, context, steps}) => {
88
const isLocalRun = ciLocalRun(context);
99

10+
console.log('CTX: ${context');
11+
1012
const marker = 'to show where the warning was created)';
1113
const output = steps.run_tests.outputs.tests_report;
1214
const sanitized = output.split(marker);

0 commit comments

Comments
 (0)