chore: Adds pre-commit checks and introduce conventional commits

This commit is contained in:
Euripedes Rocha Filho
2025-09-26 17:45:16 +02:00
parent 5b1f57f690
commit 04f8e3765d
62 changed files with 1901 additions and 872 deletions
+1
View File
@@ -6,6 +6,7 @@
tags:
- build
- internet
timeout: 1h
script:
- pip install -U 'idf-ci<1'
- idf-ci build run
+25
View File
@@ -0,0 +1,25 @@
# Pre-check jobs for ESP-MQTT
.check_pre_commit_template:
stage: pre_check
image: "${CI_DOCKER_REGISTRY}/esp-idf-pre-commit:2"
tags: [build, internet]
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: 1
SUBMODULES_TO_FETCH: "all"
script:
- pre-commit install
- pre-commit run --all-files
cache:
paths:
- .cache/submodule_archives
policy: pull
check_pre_commit:
extends:
- .check_pre_commit_template
rules:
- if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "push"'
when: never
- when: on_success