-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
CI jobs that test against named services need hosts file entries. Most projects handle this with a raw echo >> /etc/hosts step. Cleanup on failure usually doesn't happen.
Proposed solution
A GitHub Action in a separate repo (txn2/txeh-action) that wraps the txeh CLI. It adds entries in a setup step and removes them in a post step, so cleanup happens even if the job fails.
- uses: txn2/txeh-action@v1
with:
entries: |
10.0.0.1 db.test.local
10.0.0.2 api.test.localNeeds its own repo so GitHub Actions versioning (@v1 tags) works independently from the library's release tags.
Should work on Ubuntu, macOS, and Windows runners.
Alternatives considered
The echo >> /etc/hosts approach works fine for simple cases. The value here is mostly cleanup and cross-platform support, which may not justify a separate repo until profiles (#44) make setup/teardown more useful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request