File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments