Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 936 Bytes

devAndTest.md

File metadata and controls

34 lines (23 loc) · 936 Bytes

Local Development and Testing

Prerequisites

The following steps require go-task and docker to be installed. Please see each tool's documentation for installation instructions.

Local development of Anvil

# Build the image
ANVIL_TAG=local task build

# Test the image (after building)
ANVIL_TAG=local task test

# Put it all together
ANVIL_TAG=local task build test

Pre-commit

This project uses Git pre-commit hooks provided by pre-commit. Make sure you install the hooks, or the CI pipeline will fail when you try to submit a pull request

# You need Python/Pip to install pre-commit
pip install pre-commit

# Now that pre-commit is installed, install the hooks
cd your/project/directory
pre-commit install

# The hooks will now run whenever you do a git commit. To run them manually:
pre-commit run -a