feat: Add pipelines (SCRUM-44) #6
@ -4,7 +4,7 @@ on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
oas:
|
||||
test:
|
||||
name: "Gradle Check"
|
||||
runs-on: "ubuntu-latest"
|
||||
container:
|
||||
@ -25,4 +25,26 @@ jobs:
|
||||
- name: "Check"
|
||||
run: gradle check
|
||||
- name: "Stop Gradle"
|
||||
run: gradle --stop
|
||||
run: gradle --stop
|
||||
checkstyle:
|
||||
name: "Gradle Check"
|
||||
runs-on: "ubuntu-latest"
|
||||
container:
|
||||
image: "cimg/openjdk:21.0-node"
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: "Prepare Gradle"
|
||||
run: gradle clean
|
||||
- name: "Check"
|
||||
run: gradle check
|
||||
- name: "Stop Gradle"
|
||||
run: gradle --stop
|
||||
|
@ -2,6 +2,24 @@ plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "3.3.4"
|
||||
id("io.spring.dependency-management") version "1.1.6"
|
||||
id("checkstyle")
|
||||
}
|
||||
|
||||
tasks.withType<Checkstyle> {
|
||||
reports {
|
||||
xml.required.set(false)
|
||||
html.required.set(true)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Checkstyle> {
|
||||
reports {
|
||||
// Disable HTML report
|
||||
html.required.set(false)
|
||||
|
||||
// Disable XML report
|
||||
xml.required.set(false)
|
||||
}
|
||||
}
|
||||
|
||||
group = "de.szut"
|
||||
|
9
config/checkstyle/checkstyle-ignore.xml
Normal file
9
config/checkstyle/checkstyle-ignore.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE suppressions PUBLIC
|
||||
"-//Puppy Crawl//DTD Suppressions 1.2//EN"
|
||||
"https://checkstyle.org/dtds/suppressions_1_2.dtd"
|
||||
>
|
||||
|
||||
<suppressions>
|
||||
<suppress files="[\\/]de[\\/]hmmh[\\/]pmt[\\/]oas" checks="."/>
|
||||
</suppressions>
|
23
config/checkstyle/checkstyle.xml
Normal file
23
config/checkstyle/checkstyle.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"https://checkstyle.org/dtds/configuration_1_3.dtd"
|
||||
>
|
||||
<module name="Checker">
|
||||
<module name="SuppressionFilter">
|
||||
<property name="file" value="${config_loc}/checkstyle-ignore.xml"/>
|
||||
</module>
|
||||
|
||||
<property name="severity" value="error"/>
|
||||
<property name="tabWidth" value="4"/>
|
||||
|
||||
<module name="LineLength">
|
||||
<property name="max" value="500"/>
|
||||
</module>
|
||||
<module name="FileTabCharacter">
|
||||
<property name="eachLine" value="true"/>
|
||||
</module>
|
||||
|
||||
<module name="NewlineAtEndOfFile"/>
|
||||
|
||||
</module>
|
@ -57,4 +57,4 @@ public class OpenAPIConfiguration {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ public class KeycloakLogoutHandler implements LogoutHandler {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -94,4 +94,4 @@ class KeycloakSecurityConfig {
|
||||
});
|
||||
return jwtAuthenticationConverter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user