-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 1.83 KB
/
Copy pathMakefile
File metadata and controls
53 lines (38 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This file is for you! Edit it to implement your own hooks (make targets) into
# the project as automated steps to be executed on locally and in the CD pipeline.
include scripts/init.mk
# ==============================================================================
# Example CI/CD targets are: dependencies, build, publish, deploy, clean, etc.
dependencies: # Install dependencies needed to build and test the project @Pipeline
# TODO: Implement installation of your project dependencies
build: # Build the project artefact @Pipeline
# TODO: Implement the artefact build step
publish: # Publish the project artefact @Pipeline
# TODO: Implement the artefact publishing step
deploy: # Deploy the project artefact to the target environment @Pipeline
# TODO: Implement the artefact deployment step
clean:: # Clean-up project resources (main) @Operations
# TODO: Implement project resources clean-up step
config:: # Configure development environment (main) @Configuration
# Install tools from .tool-versions and mise.toml
mise install
# Install git hooks
pre-commit install --install-hooks --hook-type commit-msg
test-validations: test-commit-validator test-workflow-pinning test-tool-version-upgrade # Run validation tests for new features @Testing
test-commit-validator: # Test conventional commit validator implementation @Testing
bash tests/test-conventional-commit.sh
test-workflow-pinning: # Test workflow security pinning (immutable refs) @Testing
bash tests/test-workflow-security.sh
test-tool-version-upgrade: # Test tool version upgrade helper @Testing
bash tests/test-tool-version-upgrade.sh
# ==============================================================================
${VERBOSE}.SILENT: \
build \
clean \
config \
dependencies \
deploy \
test-validations \
test-commit-validator \
test-workflow-pinning
test-tool-version-upgrade