fix: fetch Grok pin history in coverage job

This commit is contained in:
haelyra committed 2026-11-06 00:26:21 -05:00
1 parent f5ff589cd1
commit 76cd245e8e
2 files changed
+18

No files matched your search

+2
View File
@@ -482,6 +482,8 @@ jobs:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Grok source-pin tests inspect a historical commit during coverage.
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
+16
View File
@@ -0,0 +1,16 @@
'use strict';
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const test = require('node:test');
const yaml = require('js-yaml');
test('coverage checkout includes pinned Grok source history', () => {
const workflowPath = path.join(__dirname, '..', '..', '.github', 'workflows', 'ci.yml');
const workflow = yaml.load(fs.readFileSync(workflowPath, 'utf8'));
const checkout = workflow.jobs.coverage.steps.find(step => step.name === 'Checkout');
assert.ok(checkout, 'coverage job must check out source');
assert.equal(checkout.with['fetch-depth'], 0,
'coverage tests verify historical Grok source pins and need complete Git history');
});