Skip to content

Commit a473e32

Browse files
committed
Change formatting of yaml files
yaml files reformated by `ansible-lint --fix`
1 parent b5068a6 commit a473e32

File tree

3 files changed

+73
-62
lines changed

3 files changed

+73
-62
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ indent_style = tab
1313

1414
[{*.yml,*.yaml}]
1515
indent_size = 2
16+
ij_yaml_align_values_properties = do_not_align
17+
ij_yaml_autoinsert_sequence_marker = true
18+
ij_yaml_block_mapping_on_new_line = false
19+
ij_yaml_indent_sequence_value = true
20+
ij_yaml_keep_indents_on_empty_lines = false
21+
ij_yaml_keep_line_breaks = true
22+
ij_yaml_sequence_on_new_line = false
23+
ij_yaml_space_before_colon = false
24+
ij_yaml_spaces_within_braces = false
25+
ij_yaml_spaces_within_brackets = false

.github/dependabot.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
---
12
# See https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
23

34
version: 2
45
updates:
5-
- package-ecosystem: "github-actions"
6-
directory: "/"
6+
- package-ecosystem: github-actions
7+
directory: /
78
schedule:
8-
interval: "monthly"
9+
interval: monthly

.github/workflows/shell.yml

+59-59
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
1+
---
12
name: Shell
23

34
on:
45
push:
5-
branches: [ main ]
6+
branches: [main]
67
pull_request:
7-
branches: [ main ]
8+
branches: [main]
89
workflow_dispatch:
9-
1010
jobs:
1111
lint-shell-scripts:
1212
name: Lint
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- name: Run shfmt and shellcheck
17-
uses: luizm/action-sh-checker@v0.9.0
18-
env:
19-
SHFMT_OPTS: -d -s -w -i 4 -ln bash
15+
- uses: actions/checkout@v4
16+
- name: Run shfmt and shellcheck
17+
uses: luizm/action-sh-checker@v0.9.0
18+
env:
19+
SHFMT_OPTS: -d -s -w -i 4 -ln bash
2020

2121
check-script-logic:
2222
name: Check pkg:${{ matrix.pkg }} os:${{ matrix.os }}
23-
runs-on: '${{ matrix.os }}'
23+
runs-on: ${{ matrix.os }}
2424
strategy:
2525
matrix:
2626
os:
27-
- ubuntu-latest
28-
- macos-latest
27+
- ubuntu-latest
28+
- macos-latest
2929
pkg:
30-
- all
31-
- go
30+
- all
31+
- go
3232
fail-fast: false
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v4
3535

36-
- name: Set up Go
37-
uses: actions/setup-go@v5
38-
with:
39-
go-version: '1.23.1'
40-
cache: false
36+
- name: Set up Go
37+
uses: actions/setup-go@v5
38+
with:
39+
go-version: 1.23.1
40+
cache: false
4141

42-
- name: Configure test repository
43-
run: |
44-
git clone https://github.com/xorcare/tornado
42+
- name: Configure test repository
43+
run: |
44+
git clone https://github.com/xorcare/tornado
4545
46-
- name: Setup git user
47-
working-directory: tornado
48-
run: |
49-
git config user.email "you@example.com"
50-
git config user.name "Your Name"
46+
- name: Setup git user
47+
working-directory: tornado
48+
run: |
49+
git config user.email "you@example.com"
50+
git config user.name "Your Name"
5151
52-
- name: Zero exit code when use help flags
53-
working-directory: tornado
54-
run: |
55-
../go-mod-bump.sh -h
56-
../go-mod-bump.sh -help
52+
- name: Zero exit code when use help flags
53+
working-directory: tornado
54+
run: |
55+
../go-mod-bump.sh -h
56+
../go-mod-bump.sh -help
5757
58-
- name: Zero exit code when module name is not set
59-
working-directory: tornado
60-
run: |
61-
../go-mod-bump.sh
58+
- name: Zero exit code when module name is not set
59+
working-directory: tornado
60+
run: |
61+
../go-mod-bump.sh
6262
63-
- name: Update dependencies when there is something to update
64-
working-directory: tornado
65-
run: |
66-
git checkout --force --quiet 029fe5d254ab71c1e72444adcda808f5a494084d
67-
../go-mod-bump.sh ${{ matrix.pkg }}
68-
commit_count=$(git rev-list --count HEAD ^029fe5d254ab71c1e72444adcda808f5a494084d)
69-
if [[ "$commit_count" == 0 ]]; then
70-
echo "ERROR: No changes have been detected, but they must be exist"
71-
exit 1
72-
fi
73-
git diff 029fe5d254ab71c1e72444adcda808f5a494084d
63+
- name: Update dependencies when there is something to update
64+
working-directory: tornado
65+
run: |
66+
git checkout --force --quiet 029fe5d254ab71c1e72444adcda808f5a494084d
67+
../go-mod-bump.sh ${{ matrix.pkg }}
68+
commit_count=$(git rev-list --count HEAD ^029fe5d254ab71c1e72444adcda808f5a494084d)
69+
if [[ "$commit_count" == 0 ]]; then
70+
echo "ERROR: No changes have been detected, but they must be exist"
71+
exit 1
72+
fi
73+
git diff 029fe5d254ab71c1e72444adcda808f5a494084d
7474
75-
- name: Zero exit code when nothing to update
76-
working-directory: tornado
77-
run: |
78-
git checkout --force --quiet 029fe5d254ab71c1e72444adcda808f5a494084d
79-
../go-mod-bump.sh ${{ matrix.pkg }} # update
80-
../go-mod-bump.sh ${{ matrix.pkg }} # nothing to update
75+
- name: Zero exit code when nothing to update
76+
working-directory: tornado
77+
run: |
78+
git checkout --force --quiet 029fe5d254ab71c1e72444adcda808f5a494084d
79+
../go-mod-bump.sh ${{ matrix.pkg }} # update
80+
../go-mod-bump.sh ${{ matrix.pkg }} # nothing to update
8181
82-
- name: Zero exit code when no have direct modules
83-
run: |
84-
mkdir testo
85-
cd testo
86-
go mod init testo
87-
../go-mod-bump.sh all
82+
- name: Zero exit code when no have direct modules
83+
run: |
84+
mkdir testo
85+
cd testo
86+
go mod init testo
87+
../go-mod-bump.sh all

0 commit comments

Comments
 (0)