ci: Add initial pipeline
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
version: "2.1"
|
||||||
|
|
||||||
|
orbs:
|
||||||
|
shellcheck: circleci/shellcheck@3.1.2
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
main:
|
||||||
|
jobs:
|
||||||
|
- shellcheck/check:
|
||||||
|
name: shellcheck
|
||||||
|
dir: src
|
||||||
|
|
||||||
@@ -25,6 +25,11 @@ repos:
|
|||||||
- id: shellcheck
|
- id: shellcheck
|
||||||
additional_dependencies: []
|
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
|
- repo: https://github.com/matthorgan/pre-commit-conventional-commits
|
||||||
rev: 20fb9631be1385998138432592d0b6d4dfa38fc9
|
rev: 20fb9631be1385998138432592d0b6d4dfa38fc9
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source "prompts.sh"
|
source "prompts.sh"
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source "user_feedback.sh"
|
source "user_feedback.sh"
|
||||||
|
# shellcheck disable=SC1091
|
||||||
source "logging.sh"
|
source "logging.sh"
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ _key_input() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# print new line for empty element in array
|
# print new line for empty element in array
|
||||||
|
# shellcheck disable=SC2231
|
||||||
_new_line_foreach_item() { for _ in $1[@]; do echo -en "\n" >&2; done }
|
_new_line_foreach_item() { for _ in $1[@]; do echo -en "\n" >&2; done }
|
||||||
|
|
||||||
# display prompt text without linebreak
|
# display prompt text without linebreak
|
||||||
|
|||||||
Reference in New Issue
Block a user