Skip to content

Commit 7e7c918

Browse files
no message
1 parent dfcbb6b commit 7e7c918

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/testcafe_tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,27 @@ jobs:
134134
du -sh .nx/cache .nx/workspace-data 2>/dev/null || true
135135
find .nx/cache -type f 2>/dev/null | wc -l | xargs echo "Nx cache files:"
136136
find .nx/workspace-data -maxdepth 1 -type f 2>/dev/null | sed 's#^#Nx workspace-data file: #'
137+
node - <<'NODE'
138+
const fs = require('fs');
139+
const runJsonPath = '.nx/cache/run.json';
140+
141+
if (!fs.existsSync(runJsonPath)) {
142+
console.log('Nx latest run: .nx/cache/run.json is missing');
143+
process.exit(0);
144+
}
145+
146+
const data = JSON.parse(fs.readFileSync(runJsonPath, 'utf8'));
147+
const tasks = (data.tasks ?? []).map((task) => ({
148+
taskId: task.taskId,
149+
hash: task.hash,
150+
cacheStatus: task.cacheStatus,
151+
status: task.status,
152+
}));
153+
154+
console.log(`Nx latest run command: ${data.run?.command ?? '<unknown>'}`);
155+
console.log('Nx latest run tasks:');
156+
console.log(JSON.stringify(tasks, null, 2));
157+
NODE
137158
138159
- name: Zip artifacts
139160
working-directory: ./packages/devextreme

0 commit comments

Comments
 (0)