mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-10-05 15:27:38 +00:00
chore: Adds pre-commit checks and introduce conventional commits
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
tags:
|
||||
- build
|
||||
- internet
|
||||
timeout: 1h
|
||||
script:
|
||||
- pip install -U 'idf-ci<1'
|
||||
- idf-ci build run
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user