Skip to content

Commit e4ec494

Browse files
committed
chore: setup CI pipelines in GHA
1 parent b058dc7 commit e4ec494

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
# Bash scripts (.sh files and all bin/* files)
10+
[{*.sh,bin/*}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
# YAML files
15+
[*.{yml,yaml}]
16+
indent_style = space
17+
indent_size = 2
18+
19+
# Markdown files
20+
[*.md]
21+
indent_style = space
22+
indent_size = 2
23+
trim_trailing_whitespace = false
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Link
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
link:
8+
name: Lint codebase
9+
runs-on: ubuntu-slim
10+
11+
steps:
12+
- uses: actions/checkout@v6
13+
14+
- name: Install ShellCheck
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y shellcheck
18+
- uses: editorconfig-checker/action-editorconfig-checker@main
19+
20+
- name: Run ShellCheck on bin/git-merge-to
21+
run: |
22+
shellcheck bin/git-merge-to
23+
24+
- name: Run editorconfig-checker
25+
run: editorconfig-checker

bin/git-merge-to

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ git switch "$current_branch"
4545
echo "Successfully merged '$current_branch' into '$target_branch'."
4646
[[ "$push_opt" == "--push" ]] && echo " Changes have been pushed."
4747

48-
exit 0
48+
exit 0

0 commit comments

Comments
 (0)