mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
chore: Add docker image tests - container-structure-test-config and dive-ci (#365)
This commit is contained in:
parent
f1822ed810
commit
4874cfe42e
4 changed files with 95 additions and 6 deletions
9
.github/CONTRIBUTING.md
vendored
9
.github/CONTRIBUTING.md
vendored
|
|
@ -118,10 +118,11 @@ You can use [this PR](https://github.com/antonbabenko/pre-commit-terraform/pull/
|
|||
* `docker build -t pre-commit --build-arg INSTALL_ALL=true .`
|
||||
* `docker build -t pre-commit --build-arg <NEW_HOOK>_VERSION=latest .`
|
||||
* `docker build -t pre-commit --build-arg <NEW_HOOK>_VERSION=<1.2.3> .`
|
||||
2. Add new hook to [`.pre-commit-hooks.yaml`](../.pre-commit-hooks.yaml)
|
||||
3. Create hook file. Don't forget to make it executable via `chmod +x /path/to/hook/file`.
|
||||
4. Test hook. How to do it is described in [Run and debug hooks locally](#run-and-debug-hooks-locally) section.
|
||||
5. Test hook one more time.
|
||||
2. Add Docker structure tests to [`.github/.container-structure-test-config.yaml`](.container-structure-test-config.yaml)
|
||||
3. Add new hook to [`.pre-commit-hooks.yaml`](../.pre-commit-hooks.yaml)
|
||||
4. Create hook file. Don't forget to make it executable via `chmod +x /path/to/hook/file`.
|
||||
5. Test hook. How to do it is described in [Run and debug hooks locally](#run-and-debug-hooks-locally) section.
|
||||
6. Test hook one more time.
|
||||
1. Push commit with hook file to GitHub
|
||||
2. Grab SHA hash of the commit
|
||||
3. Test hook using `.pre-commit-config.yaml`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue