-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK 85] add gradle conventions (#58)
* feat: added extensions and basic spring boot convention * feat: added extensions and basic spring boot convention * feat: added basic health check endpoint * feat: added update gradle dependencies plugin * feat: added analysis conventions plugins * style: detekt formatting style * feat: analysis conventions. - kover - detetk - codecov * feat: analysis conventions. - kover - detetk - codecov * feat: analysis conventions. - kover - detetk - codecov * ci: removed kover-report * build: pre-commit detekt * feat: gradle git properties - add spring doc configuration - gradle git properties - added actuator * style: eslint and stylelint * feat(backend): application startup traces * test(backend): bean validation tests
- Loading branch information
1 parent
60cc536
commit 3cee55a
Showing
56 changed files
with
2,596 additions
and
218 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
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 |
---|---|---|
|
@@ -77,6 +77,50 @@ jobs: | |
sarif_file: 'trivy-results-source-code.sarif' | ||
category: source-code | ||
|
||
static-analysis-security: | ||
name: 🔮 Static analysis and 🔒Security Checks | ||
needs: [ validation ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🔄 Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Java Tools & Dependencies | ||
uses: ./.github/actions/install/java | ||
|
||
- name: Install Tools & Dependencies | ||
uses: ./.github/actions/install/node | ||
|
||
- name: Check OWASP 🛡️ | ||
run: ./gradlew dependencyCheckAnalyze --no-daemon --stacktrace | ||
|
||
- name: Upload owasp-report results 🛡️⬆️ | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: owasp-reports | ||
path: build/reports/owasp | ||
|
||
- name: Run detekt | ||
run: ./gradlew detektAll --no-daemon --stacktrace | ||
|
||
- name: Upload static reports artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: static-report | ||
path: | | ||
build/reports/detekt/detekt.xml | ||
**/build/reports/lint-results-debug.xml | ||
retention-days: 1 | ||
|
||
- name: Analyze detekt report | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
sarif_file: build/reports/detekt/detekt.sarif | ||
checkout_path: ${{ github.workspace }} | ||
|
||
functional: | ||
name: Functional Acceptance Tests 🎯 | ||
needs: [ build ] | ||
|
@@ -96,6 +140,34 @@ jobs: | |
steps: | ||
- run: echo "Running security tests" | ||
|
||
code-coverage: | ||
name: Code Coverage 📊 | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ env.CI_GITHUB_TOKEN }} | ||
|
||
- name: Install Java Tools & Dependencies | ||
uses: ./.github/actions/install/java | ||
|
||
- name: Install Tools & Dependencies | ||
uses: ./.github/actions/install/node | ||
|
||
- name: Run Code Coverage | ||
run: | | ||
./gradlew koverXmlReport --no-daemon --stacktrace | ||
- name: Upload coverage reports | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: build/reports/kover/report.xml | ||
fail_ci_if_error: true # optional (default = false) | ||
verbose: true # optional (default = false) | ||
|
||
approval: | ||
name: Deploy Approval 💫 | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -74,6 +74,78 @@ jobs: | |
sarif_file: 'trivy-results-source-code.sarif' | ||
category: source-code | ||
|
||
code-coverage: | ||
name: Code Coverage 📊 | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ env.CI_GITHUB_TOKEN }} | ||
|
||
- name: Install Java Tools & Dependencies | ||
uses: ./.github/actions/install/java | ||
|
||
- name: Install Tools & Dependencies | ||
uses: ./.github/actions/install/node | ||
|
||
- name: Run Code Coverage | ||
run: | | ||
./gradlew koverXmlReport --no-daemon --stacktrace | ||
- name: Upload coverage reports | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: build/reports/kover/report.xml | ||
fail_ci_if_error: true # optional (default = false) | ||
verbose: true # optional (default = false) | ||
|
||
static-analysis-security: | ||
name: 🔮 Static analysis and 🔒Security Checks | ||
needs: [ validation ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🔄 Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Java Tools & Dependencies | ||
uses: ./.github/actions/install/java | ||
|
||
- name: Install Tools & Dependencies | ||
uses: ./.github/actions/install/node | ||
|
||
- name: Check OWASP 🛡️ | ||
run: ./gradlew dependencyCheckAnalyze --no-daemon --stacktrace | ||
|
||
- name: Upload owasp-report results 🛡️⬆️ | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: owasp-reports | ||
path: build/reports/owasp | ||
|
||
- name: Run detekt | ||
run: ./gradlew detektAll --no-daemon --stacktrace | ||
|
||
- name: Upload static reports artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: static-report | ||
path: | | ||
build/reports/detekt/detekt.xml | ||
**/build/reports/lint-results-debug.xml | ||
retention-days: 1 | ||
|
||
- name: Analyze detekt report | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
sarif_file: build/reports/detekt/detekt.sarif | ||
checkout_path: ${{ github.workspace }} | ||
|
||
package: | ||
name: Package and Publish 📦 | ||
needs: [ build ] | ||
|
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 |
---|---|---|
|
@@ -72,6 +72,50 @@ jobs: | |
sarif_file: 'trivy-results-source-code.sarif' | ||
category: source-code | ||
|
||
static-analysis-security: | ||
name: 🔮 Static analysis and 🔒Security Checks | ||
needs: [ validation ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🔄 Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Java Tools & Dependencies | ||
uses: ./.github/actions/install/java | ||
|
||
- name: Install Tools & Dependencies | ||
uses: ./.github/actions/install/node | ||
|
||
- name: Check OWASP 🛡️ | ||
run: ./gradlew dependencyCheckAnalyze --no-daemon --stacktrace | ||
|
||
- name: Upload owasp-report results 🛡️⬆️ | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: owasp-reports | ||
path: build/reports/owasp | ||
|
||
- name: Run detekt | ||
run: ./gradlew detektAll --no-daemon --stacktrace | ||
|
||
- name: Upload static reports artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: static-report | ||
path: | | ||
build/reports/detekt/detekt.xml | ||
**/build/reports/lint-results-debug.xml | ||
retention-days: 1 | ||
|
||
- name: Analyze detekt report | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
sarif_file: build/reports/detekt/detekt.sarif | ||
checkout_path: ${{ github.workspace }} | ||
|
||
functional: | ||
name: Functional Acceptance Tests 🧪 | ||
needs: [ build ] | ||
|
@@ -91,6 +135,34 @@ jobs: | |
steps: | ||
- run: echo "Running security tests" | ||
|
||
code-coverage: | ||
name: Code Coverage 📊 | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ env.CI_GITHUB_TOKEN }} | ||
|
||
- name: Install Java Tools & Dependencies | ||
uses: ./.github/actions/install/java | ||
|
||
- name: Install Tools & Dependencies | ||
uses: ./.github/actions/install/node | ||
|
||
- name: Run Code Coverage | ||
run: | | ||
./gradlew koverXmlReport --no-daemon --stacktrace | ||
- name: Upload coverage reports | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: build/reports/kover/report.xml | ||
fail_ci_if_error: true # optional (default = false) | ||
verbose: true # optional (default = false) | ||
|
||
semantic-release: | ||
name: Semantic Release 🧭 | ||
needs: [ security ] | ||
|
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
Oops, something went wrong.