-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Edgar <[email protected]>
- Loading branch information
Showing
152 changed files
with
20,434 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC | ||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | ||
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> | ||
|
||
<module name = "Checker"> | ||
|
||
<property name="localeLanguage" value="en"/> | ||
|
||
<module name="FileTabCharacter"/> | ||
|
||
<module name="SuppressWarningsFilter" /> | ||
|
||
<module name="TreeWalker"> | ||
|
||
<!-- code cleanup --> | ||
<module name="UnusedImports"> | ||
<property name="processJavadoc" value="true" /> | ||
</module> | ||
<module name="RedundantImport"/> | ||
<module name="IllegalImport" /> | ||
<module name="EqualsHashCode"/> | ||
<module name="SimplifyBooleanExpression"/> | ||
<module name="OneStatementPerLine"/> | ||
<module name="UnnecessaryParentheses" /> | ||
<module name="SimplifyBooleanReturn"/> | ||
|
||
<!-- style --> | ||
<module name="DefaultComesLast"/> | ||
<module name="EmptyStatement"/> | ||
<module name="ArrayTypeStyle"/> | ||
<module name="UpperEll"/> | ||
<module name="LeftCurly"/> | ||
<module name="RightCurly"/> | ||
<module name="EmptyStatement"/> | ||
<module name="ConstantName"> | ||
<property name="format" value="(^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$)|(^log$)"/> | ||
</module> | ||
<module name="LocalVariableName"/> | ||
<module name="LocalFinalVariableName"/> | ||
<module name="MemberName"/> | ||
<module name="ClassTypeParameterName"> | ||
<property name="format" value="^[A-Z][a-zA-Z0-9]*$$"/> | ||
</module> | ||
<module name="MethodTypeParameterName"> | ||
<property name="format" value="^[A-Z][a-zA-Z0-9]*$$"/> | ||
</module> | ||
<module name="InterfaceTypeParameterName"> | ||
<property name="format" value="^[A-Z][a-zA-Z0-9]*$$"/> | ||
</module> | ||
<module name="PackageName"/> | ||
<module name="ParameterName"/> | ||
<module name="StaticVariableName"/> | ||
<module name="TypeName"/> | ||
<module name="AvoidStarImport"/> | ||
|
||
<!-- dependencies --> | ||
<!--<module name="ImportControl"> | ||
<property name="file" value="${importControlFile}"/> | ||
</module>--> | ||
|
||
<!-- whitespace --> | ||
<module name="GenericWhitespace"/> | ||
<module name="NoWhitespaceBefore"/> | ||
<module name="WhitespaceAfter" /> | ||
<module name="NoWhitespaceAfter"/> | ||
<module name="WhitespaceAround"> | ||
<property name="allowEmptyConstructors" value="true"/> | ||
<property name="allowEmptyMethods" value="true"/> | ||
</module> | ||
<module name="Indentation"/> | ||
<module name="MethodParamPad"/> | ||
<module name="ParenPad"/> | ||
<module name="TypecastParenPad"/> | ||
|
||
<!-- locale-sensitive methods should specify locale --> | ||
<module name="Regexp"> | ||
<property name="format" value="\.to(Lower|Upper)Case\(\)"/> | ||
<property name="illegalPattern" value="true"/> | ||
<property name="ignoreComments" value="true"/> | ||
</module> | ||
|
||
<!-- code quality --> | ||
<module name="MethodLength"/> | ||
<module name="ParameterNumber"> | ||
<!-- default is 8 --> | ||
<property name="max" value="13"/> | ||
</module> | ||
<module name="ClassDataAbstractionCoupling"> | ||
<!-- default is 7 --> | ||
<property name="max" value="20"/> | ||
</module> | ||
<module name="BooleanExpressionComplexity"> | ||
<!-- default is 3 --> | ||
<property name="max" value="6"/> | ||
</module> | ||
|
||
<module name="ClassFanOutComplexity"> | ||
<!-- default is 20 --> | ||
<property name="max" value="44"/> | ||
<property name="excludedPackages" value="java.time,javax.json,javax.ws.rs,javax.ws.rs.core"/> | ||
</module> | ||
<module name="CyclomaticComplexity"> | ||
<!-- default is 10--> | ||
<property name="max" value="19"/> | ||
</module> | ||
<module name="JavaNCSS"> | ||
<!-- default is 50 --> | ||
<property name="methodMaximum" value="100"/> | ||
</module> | ||
<module name="NPathComplexity"> | ||
<!-- default is 200 --> | ||
<property name="max" value="5832"/> | ||
</module> | ||
|
||
<module name="IllegalToken"> | ||
<property name="tokens" value="LITERAL_ASSERT"/> | ||
</module> | ||
|
||
<!-- Make the @SuppressWarnings annotations available to Checkstyle --> | ||
<module name="SuppressWarningsHolder" /> | ||
</module> | ||
|
||
<module name="SuppressionFilter"> | ||
<property name="file" value="${checkstyle.suppressions.file}"/> | ||
</module> | ||
|
||
<!-- Filter out Checkstyle warnings that have been suppressed with the @SuppressWarnings annotation --> | ||
<module name="SuppressWarningsFilter" /> | ||
</module> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
|
||
<!-- Note that [/\\] must be used as the path separator for cross-platform support --> | ||
|
||
<suppress checks="MethodLength|JavaNCSS" | ||
files="admin[/\\]kafka[/\\]admin[/\\]handlers[/\\]TopicListHandler.java"/> | ||
</suppressions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: "maven" | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"platform": "github", | ||
"repositories": ["eyefloaters/deployment-environments"] | ||
} | ||
|
||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"platform": "github", | ||
"repositories": ["eyefloaters/deployment-environments"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Web UI | ||
name: Streaming Platform Console | ||
release: | ||
current-version: 0.0.5 | ||
next-version: 0.0.6-SNAPSHOT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: [ 'main' ] | ||
pull_request: | ||
branches: [ 'main' ] | ||
types: [ opened, reopened, synchronize ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Cache Maven Packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Build and Test | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
SONAR_ORG: ${{secrets.SONAR_ORG}} | ||
SONAR_PROJECT: ${{secrets.SONAR_PROJECT}} | ||
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} | ||
run: | | ||
# Set write-transformed-bytecode-to-build-output for IT coverage | ||
# See: https://quarkus.io/guides/tests-with-coverage#coverage-for-integration-tests | ||
mvn verify -B --no-transfer-progress -Dquarkus.package.write-transformed-bytecode-to-build-output=true | ||
- name: Archive Results | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: artifacts | ||
path: systemtests/target/failsafe-reports/ | ||
|
||
## Save the context information for use in Sonar analysis | ||
- name: Save Build Context | ||
run: echo "$GITHUB_CONTEXT" > target/build-context.json | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
## Attach the target directory for use in Sonar analysis | ||
- name: Attach Build Output | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: target | ||
path: | | ||
**/target/ | ||
!**/target/**/*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,28 +28,48 @@ jobs: | |
metadata-file-path: '.github/project.yml' | ||
local-file: true | ||
|
||
- name: Push Release Tag | ||
- name: Setup JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build and Push API Image | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git tag -a ${{steps.metadata.outputs.current-version}} -m "v${{steps.metadata.outputs.current-version}}" | ||
git push | ||
git push --tags | ||
git checkout -b release | ||
mvn -B release:prepare -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} | ||
git checkout ${{github.base_ref}} | ||
git rebase release | ||
export QUARKUS_CONTAINER_IMAGE_REGISTRY="${{ secrets.IMAGE_REPO_HOSTNAME }}" | ||
export QUARKUS_CONTAINER_IMAGE_GROUP="${{ secrets.IMAGE_REPO_NAMESPACE }}" | ||
export QUARKUS_CONTAINER_IMAGE_USERNAME="${{ secrets.IMAGE_REPO_USERNAME }}" | ||
export QUARKUS_CONTAINER_IMAGE_PASSWORD="${{ secrets.IMAGE_REPO_PASSWORD }}" | ||
export QUARKUS_CONTAINER_IMAGE_PUSH="true" | ||
export GIT_REVISION=$(git rev-parse --short release) | ||
# Build and push the release images using the commit tagged in `release:prepare` | ||
mvn -B -P docker release:perform | ||
- name: Login to Quay | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.QUAY_USERNAME }} | ||
password: ${{ secrets.QUAY_TOKEN }} | ||
registry: "${{ secrets.IMAGE_REPO_HOSTNAME }}" | ||
username: "${{ secrets.IMAGE_REPO_USERNAME }}" | ||
password: "${{ secrets.IMAGE_REPO_PASSWORD }}" | ||
|
||
- name: Build and push | ||
- name: Build and Push UI Image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ui/ | ||
push: true | ||
tags: | | ||
quay.io/eyefloaters/ui:${{steps.metadata.outputs.current-version}} | ||
${{ secrets.IMAGE_REPO_NAMESPACE }}/eyefloaters/ui:${{steps.metadata.outputs.current-version}} | ||
- name: Push Release Tag | ||
run: | | ||
git push | ||
git push --tags | ||
- name: Create GitHub Release | ||
uses: radcortez/milestone-release-action@98bd3321583e9bdbbe15c08fa4b2249371efaeaa | ||
|
@@ -58,8 +78,7 @@ jobs: | |
milestone-title: ${{steps.metadata.outputs.current-version}} | ||
|
||
- name: Image Update | ||
uses: renovatebot/[email protected].3 | ||
uses: renovatebot/[email protected].5 | ||
with: | ||
configurationFile: .github/gitops-config.json | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
|
Oops, something went wrong.