Skip to content

Commit ba25a7d

Browse files
committed
Merge remote-tracking branch 'old-fork/oreilly-main' into oreilly-main-merge
2 parents 1ba4abc + 336fed8 commit ba25a7d

File tree

64 files changed

+4452
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+4452
-93
lines changed

.editorconfig

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Distributed via https://github.com/rebuy-de/terraform-cluster-config
2+
# Modify only there, changes in project repos will be overwritten
3+
4+
root = true
5+
6+
[openapi-spec.yaml]
7+
ij_formatter_enabled = false
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
indent_size = 4
13+
indent_style = space
14+
insert_final_newline = true
15+
max_line_length = 120
16+
tab_width = 4
17+
trim_trailing_whitespace = true
18+
ij_continuation_indent_size = 8
19+
ij_formatter_off_tag = @formatter:off
20+
ij_formatter_on_tag = @formatter:on
21+
ij_formatter_tags_enabled = true
22+
ij_smart_tabs = false
23+
ij_visual_guides =
24+
ij_wrap_on_typing = false
25+
26+
[{*.htm,*.html,*.sht,*.shtm,*.shtml}]
27+
ij_html_attribute_wrap = off
28+
ij_html_do_not_indent_children_of_tags =
29+
ij_html_keep_blank_lines = 1
30+
ij_html_text_wrap = off
31+
32+
[{*.cjs,*.js}]
33+
ij_javascript_do_while_brace_force = always
34+
ij_javascript_for_brace_force = always
35+
ij_javascript_if_brace_force = always
36+
ij_javascript_keep_blank_lines_in_code = 1
37+
ij_javascript_use_double_quotes = false
38+
ij_javascript_while_brace_force = always
39+
40+
[{*.ats,*.cts,*.mts,*.ts}]
41+
ij_typescript_do_while_brace_force = always
42+
ij_typescript_for_brace_force = always
43+
ij_typescript_if_brace_force = always
44+
ij_typescript_import_prefer_absolute_path = true
45+
ij_typescript_keep_blank_lines_in_code = 1
46+
ij_typescript_space_before_function_left_parenth = false
47+
ij_typescript_use_double_quotes = false
48+
ij_typescript_while_brace_force = always
49+
50+
[*.coffee]
51+
indent_size = 2
52+
53+
[*.java]
54+
ij_continuation_indent_size = 4
55+
ij_java_blank_lines_around_field = 1
56+
ij_java_blank_lines_around_initializer = 0
57+
ij_java_class_brace_style = next_line
58+
ij_java_class_count_to_use_import_on_demand = 99
59+
ij_java_do_while_brace_force = always
60+
ij_java_doc_add_blank_line_after_param_comments = true
61+
ij_java_doc_add_blank_line_after_return = true
62+
ij_java_for_brace_force = always
63+
ij_java_if_brace_force = always
64+
ij_java_keep_blank_lines_before_right_brace = 0
65+
ij_java_keep_blank_lines_in_code = 1
66+
ij_java_keep_blank_lines_in_declarations = 0
67+
ij_java_keep_simple_classes_in_one_line = true
68+
ij_java_keep_simple_lambdas_in_one_line = true
69+
ij_java_method_brace_style = next_line
70+
ij_java_names_count_to_use_import_on_demand = 99
71+
ij_java_new_line_after_lparen_in_record_header = true
72+
ij_java_packages_to_use_import_on_demand =
73+
ij_java_record_components_wrap = on_every_item
74+
ij_java_rparen_on_new_line_in_record_header = true
75+
ij_java_while_brace_force = always
76+
77+
[{*.kt,*.kts}]
78+
ij_continuation_indent_size = 4
79+
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
80+
ij_kotlin_name_count_to_use_star_import = 2147483647
81+
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
82+
ij_kotlin_packages_to_use_import_on_demand =
83+
84+
[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}]
85+
ij_php_align_multiline_parameters = false
86+
ij_php_blank_lines_around_field = 1
87+
ij_php_blank_lines_before_return_statement = 1
88+
ij_php_comma_after_last_array_element = true
89+
ij_php_force_short_declaration_array_style = true
90+
ij_php_keep_blank_lines_before_right_brace = 0
91+
ij_php_keep_blank_lines_in_code = 1
92+
ij_php_keep_blank_lines_in_declarations = 0
93+
ij_php_keep_rparen_and_lbrace_on_one_line = true
94+
ij_php_lower_case_boolean_const = true
95+
ij_php_lower_case_null_const = true
96+
ij_php_method_parameters_new_line_after_left_paren = true
97+
ij_php_method_parameters_right_paren_on_new_line = true
98+
ij_php_phpdoc_blank_line_before_tags = true
99+
ij_php_phpdoc_blank_lines_around_parameters = true
100+
ij_php_space_after_type_cast = true
101+
ij_php_space_before_short_closure_left_parenthesis = true
102+
103+
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.pom,*.rng,*.tld,*.wadl,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul,phpunit.xml.dist}]
104+
ij_xml_space_inside_empty_tag = true
105+
106+
[{*.tf,*.tfvars,*.hcl}]
107+
tab_width = 2
108+
ij_continuation_indent_size = 4
109+
110+
[*.less]
111+
tab_width = 2
112+
ij_continuation_indent_size = 2
113+
114+
[*.sass]
115+
tab_width = 2
116+
ij_continuation_indent_size = 2
117+
118+
[*.scala]
119+
ij_scala_do_while_brace_force = always
120+
ij_scala_for_brace_force = always
121+
ij_scala_if_brace_force = always
122+
ij_scala_keep_blank_lines_before_right_brace = 0
123+
ij_scala_keep_blank_lines_in_code = 0
124+
ij_scala_keep_blank_lines_in_declarations = 0
125+
ij_scala_multiline_string_closing_quotes_on_new_line = false
126+
127+
[*.scss]
128+
ij_continuation_indent_size = 4
129+
130+
[{*.yaml,*.yml}]
131+
ij_yaml_spaces_within_braces = false
132+
ij_yaml_spaces_within_brackets = false

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "gomod"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
day: "tuesday"
10+
time: "10:00"
11+
timezone: "Europe/Berlin"
12+
groups:
13+
golang:
14+
patterns:
15+
- "*"

.github/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
2+
3+
changelog:
4+
categories:
5+
- title: Notable changes
6+
labels:
7+
- '*'
8+
exclude:
9+
labels:
10+
- dependencies
11+
- title: Dependency updates
12+
labels:
13+
- dependencies

.github/workflows/ci.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Golang CI
2+
3+
on:
4+
push:
5+
branches: [oreilly-main]
6+
pull_request:
7+
types: [opened, reopened, synchronize]
8+
schedule:
9+
- cron: '15 3 * * 0'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: CI Build
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- name: Setup Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.22'
21+
- name: Setup tools
22+
run: |
23+
go install golang.org/x/lint/golint@latest
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
- name: Check Formatting
27+
run: |
28+
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
29+
echo "### Go formatting is off, please execute 'gofmt -w -s .' - see following diff: ###"
30+
gofmt -s -d .
31+
exit 1
32+
fi
33+
- name: Test Project
34+
run: |
35+
make test
36+
- name: Build Project
37+
run: |
38+
make

.github/workflows/release.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish release artifacts
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
update_readme:
9+
name: Update Readme
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
ref: main
17+
- name: Update versions in readme
18+
run: |
19+
sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${{ github.ref_name }}/" README.md
20+
sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${{ github.ref_name }}/" README.md
21+
sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${{ github.ref_name }}\//" README.md
22+
- uses: peter-evans/create-pull-request@v6
23+
name: Create Pull Request
24+
with:
25+
title: Update readme for ${{ github.ref_name }} release
26+
commit-message: Update readme for ${{ github.ref_name }} release
27+
body: Updating version references in the readme to ${{ github.ref_name }}
28+
branch: update-readme-${{ github.ref_name }}
29+
delete-branch: true
30+
31+
release:
32+
name: Publish binaries
33+
runs-on: ubuntu-22.04
34+
steps:
35+
- name: Setup Go
36+
uses: actions/setup-go@v5
37+
with:
38+
go-version: '1.22'
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
with:
42+
fetch-depth: 0
43+
- name: Build Project binaries
44+
env:
45+
CGO_ENABLED: 0
46+
run: |
47+
make xc
48+
- name: Upload binaries to release
49+
uses: svenstaro/upload-release-action@v2
50+
with:
51+
repo_token: ${{ secrets.GITHUB_TOKEN }}
52+
file: dist/aws*
53+
tag: ${{ github.ref }}
54+
overwrite: true
55+
file_glob: true

0 commit comments

Comments
 (0)