ci: Add initial pipeline

This commit is contained in:
Timo Reymann
2023-02-15 13:30:40 +01:00
parent 3744a220f1
commit da13b88d3a
5 changed files with 23 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
version: "2.1"
orbs:
shellcheck: circleci/shellcheck@3.1.2
workflows:
main:
jobs:
- shellcheck/check:
name: shellcheck
dir: src
+5
View File
@@ -25,6 +25,11 @@ repos:
- id: shellcheck
additional_dependencies: []
- repo: https://github.com/zahorniak/pre-commit-circleci.git
rev: v0.6
hooks:
- id: circleci_validate
- repo: https://github.com/matthorgan/pre-commit-conventional-commits
rev: 20fb9631be1385998138432592d0b6d4dfa38fc9
hooks:
+3
View File
@@ -1,5 +1,8 @@
#!/bin/bash
# shellcheck disable=SC1091
source "prompts.sh"
# shellcheck disable=SC1091
source "user_feedback.sh"
# shellcheck disable=SC1091
source "logging.sh"
+1
View File
@@ -24,6 +24,7 @@ _key_input() {
}
# print new line for empty element in array
# shellcheck disable=SC2231
_new_line_foreach_item() { for _ in $1[@]; do echo -en "\n" >&2; done }
# display prompt text without linebreak
+2 -2
View File
@@ -2,9 +2,9 @@
#
# Basic demo of features
#
cd src
cd src || exit 2
source main.sh
cd -
cd - || exit 2
#
# UTILS