Skip to content

Commit a63cba9

Browse files
committed
ci: format: add yaml lint
1 parent d7cc124 commit a63cba9

File tree

15 files changed

+21
-85
lines changed

15 files changed

+21
-85
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ updates:
2121
include: "scope"
2222
ignore:
2323
- dependency-name: "*"
24-
update-types: [ "version-update:semver-major" ]
24+
update-types: ["version-update:semver-major"]
2525
- package-ecosystem: "github-actions"
2626
directory: "/"
2727
schedule:
@@ -32,4 +32,4 @@ updates:
3232
- "github-actions"
3333
commit-message:
3434
prefix: "ci"
35-
include: "scope"
35+
include: "scope"

.github/workflows/ci-build.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
name: CI - Build
2-
32
on:
43
push:
5-
branches: [ "**" ]
4+
branches: ["**"]
65
pull_request:
7-
branches: [ "**" ]
6+
branches: ["**"]
87
workflow_dispatch:
9-
108
jobs:
119
docker-build:
1210
runs-on: ubuntu-latest
1311
permissions:
1412
contents: read
15-
1613
steps:
1714
- name: Checkout code
1815
uses: actions/checkout@v6
19-
2016
- name: Set up Docker Buildx
2117
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
22-
2318
- name: Build Docker image
2419
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
2520
with:
@@ -29,18 +24,15 @@ jobs:
2924
tags: unfaked-app:${{ github.sha }}
3025
cache-from: type=gha
3126
cache-to: type=gha,mode=max
32-
3327
- name: Verify Docker image was created
3428
run: |
3529
docker images | grep unfaked-app
3630
echo "Docker image build successful!"
37-
3831
- name: Verify JAR file exists in image
3932
run: |
4033
docker run --rm --entrypoint sh unfaked-app:${{ github.sha }} -c "ls -lh /app/app.jar"
4134
echo "Application JAR found in image!"
42-
4335
- name: Verify Java version in image
44-
run: |
36+
run: |-
4537
docker run --rm --entrypoint sh unfaked-app:${{ github.sha }} -c "java -version"
46-
echo "Java 21 verified in image!"
38+
echo "Java 21 verified in image!"

.github/workflows/ci-codeql.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: CI - CodeQL
2-
32
on:
43
push:
54
branches:
65
- '**'
76
pull_request:
87
branches:
98
- '**'
10-
119
jobs:
1210
analyze:
1311
name: Analyze (Java)
@@ -16,34 +14,29 @@ jobs:
1614
actions: read
1715
contents: read
1816
security-events: write
19-
2017
steps:
2118
- name: Checkout repository
2219
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
2320
with:
2421
fetch-depth: 0
25-
2622
- name: Set up JDK 21
2723
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e
2824
with:
2925
java-version: '21'
3026
distribution: 'temurin'
3127
cache: gradle
32-
3328
- name: Initialize CodeQL
3429
uses: github/codeql-action/init@5d4e8d1aca955e8d8589aabd499c5cae939e33c7
3530
with:
3631
languages: java
3732
queries: security-extended
3833
debug: true
39-
4034
- name: Autobuild
4135
uses: github/codeql-action/autobuild@5d4e8d1aca955e8d8589aabd499c5cae939e33c7
4236
env:
4337
JAVA_HOME_21_X64: ${{ steps.setup-java.outputs.java-home }}
4438
with:
4539
debug: true
46-
4740
- name: Perform CodeQL Analysis
4841
uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7
4942
with:

.github/workflows/ci-format.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: CI - Format
2-
32
on:
43
push:
54
branches:
@@ -8,20 +7,16 @@ on:
87
branches:
98
- '*'
109
workflow_dispatch:
11-
1210
workflow_call:
13-
1411
jobs:
1512
format:
1613
runs-on: ubuntu-latest
1714
timeout-minutes: 20
18-
1915
steps:
2016
- uses: actions/checkout@v6
2117
- uses: actions/setup-java@v5
2218
with:
2319
java-version: '21'
2420
distribution: 'corretto'
25-
2621
- run: chmod +x format.sh
27-
- run: ./format.sh && git diff --exit-code
22+
- run: ./format.sh && git diff --exit-code

.github/workflows/ci-qodana.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
name: CI - Qodana Linter
2-
32
on:
43
push:
54
branches:
65
- '**'
76
pull_request:
87
branches:
98
- '**'
10-
119
jobs:
1210
qodana:
1311
runs-on: ubuntu-latest
14-
1512
permissions:
1613
contents: read
1714
pull-requests: write
1815
checks: write
1916
actions: read
20-
2117
steps:
2218
- name: Checkout
2319
uses: actions/checkout@v6
24-
2520
- name: Qodana Scan
2621
uses: JetBrains/qodana-action@99ec27a55aaaf5ba2fd7e5816e66231caed7a72a
2722
env:
@@ -33,23 +28,20 @@ jobs:
3328
upload-result: false
3429
args: --save-report,--results-dir,${{ runner.temp }}/qodana
3530
push-fixes: 'none'
36-
3731
- name: Print Qodana Summary
3832
if: always()
3933
run: |
4034
echo "===== QODANA SUMMARY ====="
4135
jq '.' ${{ runner.temp }}/qodana/results/summary.json || echo "No summary.json found"
42-
4336
- name: Print Qodana Errors & Issues
4437
if: always()
4538
run: |
4639
echo "===== QODANA ISSUES ====="
4740
jq '.problems' ${{ runner.temp }}/qodana/results/qodana.json || echo "No problems found"
48-
4941
- name: Print Qodana SARIF issues (compact)
5042
if: always()
51-
run: |
43+
run: |-
5244
echo "===== QODANA SARIF (compact list) ====="
5345
jq '.runs[].results[] | {ruleId, message: .message.text, file: .locations[0].physicalLocation.artifactLocation.uri, line: .locations[0].physicalLocation.region.startLine}' \
5446
${{ runner.temp }}/qodana/qodana.sarif.json \
55-
|| echo "SARIF not found"
47+
|| echo "SARIF not found"

.github/workflows/ci-semgrep.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,32 @@
11
name: CI - Semgrep
2-
32
on:
43
push:
54
branches:
65
- '**'
76
pull_request:
87
branches:
98
- '**'
10-
119
jobs:
1210
semgrep:
1311
name: Analyze (Semgrep)
1412
runs-on: ubuntu-latest
15-
1613
permissions:
1714
contents: read
1815
security-events: write
19-
2016
steps:
2117
- name: Checkout repository
2218
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
23-
2419
- name: Install Semgrep
2520
run: |
2621
python3 -m pip install --upgrade pip
2722
python3 -m pip install semgrep
28-
2923
- name: Run Semgrep (SARIF + verbose)
3024
run: |
3125
semgrep ci \
3226
--config=auto \
3327
--sarif \
3428
--output=semgrep.sarif \
3529
--verbose
36-
3730
- name: Upload SARIF results
3831
uses: github/codeql-action/upload-sarif@v4
3932
with:

.github/workflows/ci-test.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
name: CI - Tests
2-
32
on:
43
push:
5-
branches: [ "**" ]
4+
branches: ["**"]
65
pull_request:
7-
branches: [ "**" ]
8-
6+
branches: ["**"]
97
jobs:
108
test:
119
runs-on: ubuntu-latest
1210
permissions:
1311
contents: read
14-
1512
steps:
1613
- name: Checkout code
1714
uses: actions/checkout@v6
18-
1915
- name: Set up JDK 21
2016
uses: actions/setup-java@v5
2117
with:
2218
distribution: temurin
2319
java-version: 21
2420
cache: gradle
25-
2621
- name: Grant execute permission for Gradle wrapper
2722
run: chmod +x gradlew
28-
2923
- name: Cache Gradle dependencies
3024
uses: actions/cache@v5
3125
with:
@@ -35,7 +29,6 @@ jobs:
3529
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
3630
restore-keys: |
3731
${{ runner.os }}-gradle-
38-
3932
- name: Run tests
4033
env:
4134
TESTCONTAINERS_RYUK_DISABLED: "true"

doc/api.yaml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ info:
55
version: 1.0.0
66
servers:
77
- url: 'https'
8-
98
paths:
109
/:
1110
get:
@@ -22,7 +21,6 @@ paths:
2221
schema:
2322
type: string
2423
example: /doc
25-
2624
/ping:
2725
get:
2826
operationId: pong
@@ -37,16 +35,15 @@ paths:
3735
schema:
3836
type: string
3937
example: pong
40-
4138
/health/bucket:
4239
get:
4340
operationId: healthBucketCheck
4441
tags:
4542
- Health
4643
summary: Check bucket health by uploading, downloading, and presigning a file
4744
description: >
48-
This endpoint uploads a randomly generated text file to the storage bucket,
49-
verifies its content by downloading it, and returns a presigned URL for the file.
45+
This endpoint uploads a randomly generated text file to the storage bucket, verifies its content by downloading it, and returns a presigned URL for the file.
46+
5047
responses:
5148
200:
5249
description: Successfully uploaded, verified, and presigned file.
@@ -72,7 +69,7 @@ paths:
7269
- Health
7370
summary: Send health check email
7471
description: Sends a test email to verify email service functionality
75-
security: [ ]
72+
security: []
7673
parameters:
7774
- name: to
7875
in: query
@@ -102,16 +99,15 @@ paths:
10299
message: "Invalid email address format"
103100
path: "/health/email"
104101
errorCode: "BAD_FORM"
105-
106102
/health/message:
107103
get:
108104
operationId: triggerDummyEvents
109105
tags:
110106
- Health
111107
summary: Trigger dummy health check events
112108
description: >
113-
This endpoint triggers one or more dummy events through the event producer
114-
for testing the messaging system (e.g., RabbitMQ or Kafka).
109+
This endpoint triggers one or more dummy events through the event producer for testing the messaging system (e.g., RabbitMQ or Kafka).
110+
115111
parameters:
116112
- name: nbEvent
117113
in: query
@@ -152,7 +148,6 @@ paths:
152148
error:
153149
type: string
154150
example: nbEvent must be between 1 and 500
155-
156151
/health/db:
157152
get:
158153
summary: Health check for the dummy database
@@ -200,7 +195,6 @@ paths:
200195
totalPages: 1
201196
number: 0
202197
size: 5
203-
204198
components:
205199
schemas:
206200
ErrorResponse:
@@ -251,23 +245,21 @@ components:
251245
- error
252246
- message
253247
- path
254-
255248
DateTime:
256249
type: string
257250
format: date-time
258251
description: 'Date and time in ISO 8601 format (RFC 3339)'
259252
example: '2025-12-06T11:23:45Z'
260-
261253
UUID:
262254
type: string
263255
pattern: '^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'
264256
format: uuid
265257
example: e6b5cc3e-eaaa-4cb3-912c-e059e983bb78
266258
Dummy:
267259
type: object
268-
required: [ id, description ]
260+
required: [id, description]
269261
properties:
270262
id:
271263
$ref: "#/components/schemas/UUID"
272264
description:
273-
type: string
265+
type: string

format.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/sh
22
find src -name "*.java" -print0 | xargs -0 -n 500 java -jar google-java-format-1.28.0-all-deps.jar --replace
3+
find . \( -name "*.yml" -o -name "*.yaml" \) -print0 | xargs -0 ./yamlfmt
File renamed without changes.

0 commit comments

Comments
 (0)