Skip to content

Commit 7dd0715

Browse files
committed
ci(local-action): use native github actions log groups in standalone mode
1 parent 6555b6f commit 7dd0715

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/actions/code-pushup/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ runs:
1414
using: composite
1515
steps:
1616
- name: Run Node script
17-
run: npx tsx .github/actions/code-pushup/src/runner.ts
17+
run: node .github/actions/code-pushup/src/runner.ts
1818
shell: bash
1919
env:
2020
TSX_TSCONFIG_PATH: .github/actions/code-pushup/tsconfig.json
21+
NODE_OPTIONS: --import=tsx
2122
GH_TOKEN: ${{ inputs.token }}
2223
MODE: ${{ inputs.mode }}

.github/actions/code-pushup/src/runner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ async function run(): Promise<void> {
159159
}
160160
: {
161161
jobId: 'standalone-mode',
162-
bin: 'npx nx code-pushup --',
162+
// run without Nx to demonstrate native GitHub Actions log groups
163+
bin: 'node packages/cli/src/index.ts',
163164
};
164165

165166
const gitRefs = parseGitRefs();

0 commit comments

Comments
 (0)