Skip to content

Add CI workflow to validate chezmoi configuration#5

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/setup-github-ci
Draft

Add CI workflow to validate chezmoi configuration#5
Copilot wants to merge 4 commits intomainfrom
copilot/setup-github-ci

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Adds automated validation of chezmoi dotfiles configuration on every push and PR.

Changes

  • .github/workflows/ci.yml: GitHub Actions workflow that validates chezmoi templates and configuration
    • Installs chezmoi in clean Ubuntu environment
    • Provisions test configuration with all required template variables
    • Runs chezmoi apply --dry-run --verbose to validate template rendering
    • Verifies data variables with chezmoi data
    • Uses minimal permissions (contents: read)

Validation approach

The workflow catches template syntax errors, undefined variables, and malformed configurations before merge by attempting to render all templates in dry-run mode against a complete test dataset.

# Test data includes all variables used in templates
[data]
    name = "CI Test User"
    email = "ci@example.com"
    editor = "vim"
    installZsh = false
    installPython = false
    # ... all other template variables

Workflow triggers on push to main, pull_request to main, and manual workflow_dispatch.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • get.chezmoi.io
    • Triggering command: /usr/bin/curl curl -fsLS get.chezmoi.io (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>CI</issue_title>
<issue_description>I'd like to have github ci setup for this repo. I want to automatically check if chozmoi configuration is correct. </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits January 20, 2026 15:16
Co-authored-by: verlihirsh <6280012+verlihirsh@users.noreply.github.com>
Co-authored-by: verlihirsh <6280012+verlihirsh@users.noreply.github.com>
Co-authored-by: verlihirsh <6280012+verlihirsh@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub CI configuration for chozmoi Add CI workflow to validate chezmoi configuration Jan 20, 2026
Copilot AI requested a review from chhlga January 20, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI

2 participants