Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure Hex CI/CD integration with GitHub Actions and testing. Use when setting up automated testing, configuring CI pipelines, or integrating Hex tests into your build process. Trigger with phrases like "hex CI", "hex GitHub Actions", "hex automated tests", "CI hex".
.claude/skills/jeremylongshore-hex-ci-integration/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 59% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 19% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -7% | 0% |
Set up CI/CD for Hex data analytics integrations: run unit tests with mocked project run and connection responses on every PR, trigger live Hex project runs and validate outputs on merge to main. Hex provides collaborative data notebooks with scheduled runs and API-triggered execution, so CI pipelines verify data transform logic, trigger post-deploy dashboard refreshes, and monitor run status.
yaml# .github/workflows/hex-ci.yml name: Hex CI on: pull_request: paths: ['src/hex/**', 'tests/**'] push: branches: [main] jobs: unit-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: '20' } - run: npm ci - run: npm test -- --reporter=verbose trigger-hex-refresh: if: github.ref == 'refs/heads/main' needs: unit-tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: '20' } - run: npm ci - run: npm run test:integration env: HEX_API_TOKEN: ${{ secrets.HEX_API_TOKEN }} HEX_PROJECT_ID: ${{ vars.HEX_PROJECT_ID }}
typescript// tests/hex-service.test.ts import { describe, it, expect, vi } from 'vitest'; import { triggerProjectRun, getRunStatus } from '../src/hex-service'; vi.mock('../src/hex-client', () => ({ HexClient: vi.fn().mockImplementation(() => ({ runProject: vi.fn().mockResolvedValue({ runId: 'run_abc123', projectId: 'proj_xyz', status: 'running', startedAt: '2026-04-01T10:00:00Z', }), getRunStatus: vi.fn().mockResolvedValue({ runId: 'run_abc123', status: 'completed', elapsedMs: 4500, outputs: { row_count: 1250, last_updated: '2026-04-01T10:00:04Z' }, }), listProjects: vi.fn().mockResolvedValue({ projects: [{ id: 'proj_xyz', title: 'Revenue Dashboard' }], }), })), })); describe('Hex Service', () => { it('triggers a project run and returns run ID', async () => { const result = await triggerProjectRun('proj_xyz', { triggered_by: 'ci' }); expect(result.runId).toBe('run_abc123'); expect(result.status).toBe('running'); }); it('polls run status until complete', async () => { const status = await getRunStatus('run_abc123'); expect(status.status).toBe('completed'); expect(status.outputs.row_count).toBe(1250); }); });
typescript// tests/integration/hex.integration.test.ts import { describe, it, expect } from 'vitest'; const hasToken = !!process.env.HEX_API_TOKEN; describe.skipIf(!hasToken)('Hex Live API', () => { it('triggers a project run via API', async () => { const res = await fetch( `https://app.hex.tech/api/v1/project/${process.env.HEX_PROJECT_ID}/run`, { method: 'POST', headers: { 'Authorization': `Bearer ${process.env.HEX_API_TOKEN}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ inputParams: { triggered_by: 'ci' }, updateCacheResult: true }), }, ); expect(res.status).toBe(200); const body = await res.json(); expect(body).toHaveProperty('runId'); }); });
| CI Issue | Cause | Fix | |----------|-------|-----| | 401 Unauthorized | Invalid or expired API token | Regenerate at app.hex.tech account settings | | 404 Project not found | Wrong project ID | Verify HEX_PROJECT_ID matches the Hex dashboard URL | | Run status stuck on running | Long-running query or connection issue | Set timeout and poll interval (max 5 min) | | inputParams rejected | Parameter name mismatch | Match param names exactly to Hex project input cells | | Rate limit (429) | Too many run triggers | Deduplicate CI triggers and add cooldown between runs |
For deployment patterns, see hex-deploy-integration.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 19,337 | 21,510 | +11% | 1 | 1 | 0% | 3,084 | 4,914 | +59% | 0 | 0 | — |
case-23 | pass→pass | 18,387 | 15,266 | -17% | 1 | 1 | 0% | 2,370 | 2,970 | +25% | 0 | 0 | — |
case-02 | fail→fail | 27,805 | 19,855 | -29% | 1 | 1 | 0% | 3,502 | 4,168 | +19% | 0 | 0 | — |
case-03 | fail→fail | 17,660 | 15,728 | -11% | 1 | 1 | 0% | 2,370 | 3,371 | +42% | 0 | 0 | — |
case-04 | pass→pass | 18,318 | 16,443 | -10% | 1 | 1 | 0% | 2,299 | 3,925 | +71% | 0 | 0 | — |
case-05 | pass→pass | 12,377 | 16,177 | +31% | 1 | 1 | 0% | 2,116 | 3,339 | +58% | 0 | 0 | — |
case-06 | pass→pass | 15,146 | 18,725 | +24% | 1 | 1 | 0% | 1,664 | 3,197 | +92% | 0 | 0 | — |
case-21 | pass→pass | 18,118 | 16,322 | -10% | 1 | 1 | 0% | 2,319 | 3,592 | +55% | 0 | 0 | — |
case-07 | pass→pass | 6,007 | 8,755 | +46% | 1 | 1 | 0% | 786 | 1,843 | +134% | 0 | 0 | — |
case-08 | fail→pass | 17,974 | 12,847 | -29% | 1 | 1 | 0% | 2,109 | 2,519 | +19% | 0 | 0 | — |
case-09 | pass→pass | 13,616 | 3,787 | -72% | 1 | 1 | 0% | 1,426 | 1,845 | +29% | 0 | 0 | — |
case-10 | pass→pass | 10,259 | 8,124 | -21% | 1 | 1 | 0% | 1,046 | 1,824 | +74% | 0 | 0 | — |
case-11 | pass→pass | 15,160 | 10,707 | -29% | 1 | 1 | 0% | 1,695 | 2,748 | +62% | 0 | 0 | — |
case-12 | fail→pass | 13,542 | 7,772 | -43% | 1 | 1 | 0% | 1,123 | 1,702 | +52% | 0 | 0 | — |
case-13 | fail→pass | 20,156 | 18,011 | -11% | 1 | 1 | 0% | 2,651 | 3,533 | +33% | 0 | 0 | — |
case-14 | fail→pass | 17,200 | 10,389 | -40% | 1 | 1 | 0% | 2,330 | 2,160 | -7% | 0 | 0 | — |
case-15 | fail→pass | 15,421 | 12,894 | -16% | 1 | 1 | 0% | 2,757 | 2,854 | +4% | 0 | 0 | — |
case-22 | fail→pass | 21,695 | 14,694 | -32% | 1 | 1 | 0% | 2,863 | 4,043 | +41% | 0 | 0 | — |
case-16 | fail→pass | 16,858 | 8,287 | -51% | 1 | 1 | 0% | 2,223 | 1,836 | -17% | 0 | 0 | — |
case-17 | fail→pass | 7,732 | 4,034 | -48% | 1 | 1 | 0% | 1,436 | 1,888 | +31% | 0 | 0 | — |
case-18 | fail→pass | 15,510 | 4,864 | -69% | 1 | 1 | 0% | 1,840 | 2,056 | +12% | 0 | 0 | — |
case-19 | fail→fail | 10,657 | 2,728 | -74% | 1 | 1 | 0% | 1,070 | 1,669 | +56% | 0 | 0 | — |
case-20 | fail→pass | 30,033 | 11,211 | -63% | 1 | 1 | 0% | 1,825 | 1,754 | -4% | 0 | 0 | — |
case-24 | fail→fail | 15,911 | 15,221 | -4% | 1 | 1 | 0% | 2,567 | 3,963 | +54% | 0 | 0 | — |
case-25 | fail→pass | 5,413 | 7,043 | +30% | 1 | 1 | 0% | 753 | 1,543 | +105% | 0 | 0 | — |
case-26 | fail→pass | 23,717 | 7,544 | -68% | 1 | 1 | 0% | 3,318 | 1,636 | -51% | 0 | 0 | — |
case-27 | fail→pass | 17,705 | 8,975 | -49% | 1 | 1 | 0% | 2,234 | 1,907 | -15% | 0 | 0 | — |
case-28 | fail→pass | 20,236 | 6,964 | -66% | 1 | 1 | 0% | 1,279 | 1,538 | +20% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 28 cases were attempted. The headline lift of +54 percentage points is the difference between those two pass rates over the 28 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.