Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
6ee8a08
Update Sonar project key in pom.xml
23120049 Apr 18, 2026
0522598
Update Docker image tag in CI workflow
23120049 Apr 11, 2026
d19cf11
Set FROM_ORIGINAL_REPOSITORY to true
23120049 Apr 11, 2026
f688c35
Allow use of unsecure Node version in CI
23120049 Apr 11, 2026
39a377d
Update Sonar organization and project key in pom.xml
23120049 Apr 18, 2026
e103d78
Update backoffice-bff-ci.yaml
23120049 Apr 18, 2026
b57a7f5
Merge pull request #3 from 23120049/editBuild
23120049 Apr 18, 2026
41dc539
Edit .yaml and pom.xml in each directory.
23120049 Apr 18, 2026
96933d9
change aquasecurity version to v0.35.0
23120049 Apr 18, 2026
9a2529e
Update Trivy action version in CI workflow
23120049 Apr 18, 2026
069537d
centralEnabled=false storefront bff
23120049 Apr 21, 2026
055638f
disable central
23120049 Apr 21, 2026
5f8411d
edit arguments
23120049 Apr 21, 2026
7f4d749
disable central in wotkflow files
23120049 Apr 21, 2026
a97cfc3
disable central in workflow files
23120049 Apr 21, 2026
a0d0ee5
edit search service
23120049 Apr 21, 2026
ee7942b
Merge pull request #6 from 23120049/cgb
23120049 Apr 21, 2026
0bf4262
ci(maven config): add surefire & jacoco plugins to all service poms
thhuon Apr 21, 2026
1bccfce
ci(workflows): add test phase for all backend services
thhuon Apr 21, 2026
fde6b1a
fix: reversed build and test phase order
thhuon Apr 22, 2026
67195a0
Update GitLeaks workflow configuration
UngDuong125 Apr 22, 2026
99b1e4c
update snyk
UngDuong125 Apr 22, 2026
1d586f4
Merge pull request #7 from 23120049/gitleaks
UngDuong125 Apr 22, 2026
d3ecd5f
Merge pull request #8 from 23120049/snyk
UngDuong125 Apr 23, 2026
2a73c89
Revert "update snyk"
UngDuong125 Apr 23, 2026
5b71b07
Merge pull request #9 from 23120049/revert-8-snyk
UngDuong125 Apr 23, 2026
a89b5d2
fix java_home for snyk
UngDuong125 Apr 23, 2026
f96f1a6
Merge branch 'main' into snyk
UngDuong125 Apr 23, 2026
6b144c5
Update backoffice-bff-ci.yaml
UngDuong125 Apr 23, 2026
4462ce1
Merge branch 'snyk' of https://github.com/23120049/yas into snyk
UngDuong125 Apr 23, 2026
8915162
fix args
UngDuong125 Apr 23, 2026
eadd00a
Update product-ci.yaml
UngDuong125 Apr 23, 2026
01cf693
Update product-ci.yaml
UngDuong125 Apr 23, 2026
3dbd6ba
Update product-ci.yaml
UngDuong125 Apr 23, 2026
9beb850
fix(search-ci): adjust test phase same level as build
thhuon Apr 23, 2026
0220d4b
Update product-ci.yaml
UngDuong125 Apr 23, 2026
ee54d08
Update product-ci.yaml
UngDuong125 Apr 23, 2026
bde221c
Update product-ci.yaml
UngDuong125 Apr 23, 2026
0ab1843
Update product-ci.yaml
UngDuong125 Apr 23, 2026
930d244
Update product-ci.yaml
UngDuong125 Apr 23, 2026
99b718d
Update product-ci.yaml
UngDuong125 Apr 23, 2026
da47c2f
Update product-ci.yaml
UngDuong125 Apr 23, 2026
5c6abd4
Update product-ci.yaml
UngDuong125 Apr 23, 2026
dfaaea8
Update product-ci.yaml
UngDuong125 Apr 23, 2026
5a3cb40
merge Huong branch with main
23120049 Apr 23, 2026
dc2b156
Update product-ci.yaml
UngDuong125 Apr 23, 2026
6b18947
skip test
23120049 Apr 23, 2026
5c6e290
Update product-ci.yaml
UngDuong125 Apr 23, 2026
08d6a16
modify maven steps
23120049 Apr 23, 2026
3df28af
Update product-ci.yaml
UngDuong125 Apr 23, 2026
172c193
Update product-ci.yaml
UngDuong125 Apr 23, 2026
0875ee0
update cart build phase
23120049 Apr 23, 2026
9f9dc75
Update cart-ci.yaml
23120049 Apr 23, 2026
33cc5fd
Update product-ci.yaml
UngDuong125 Apr 23, 2026
6618953
Update cart-ci.yaml
23120049 Apr 23, 2026
2fd3d78
Update cart-ci.yaml
23120049 Apr 23, 2026
c26a51f
Update product-ci.yaml
UngDuong125 Apr 23, 2026
e8bb2b4
Update pom.xml
UngDuong125 Apr 23, 2026
12a0909
fix snyk
UngDuong125 Apr 23, 2026
1a932dc
Update recommendation-ci.yaml
UngDuong125 Apr 23, 2026
8513dae
Merge pull request #20 from 23120049/snyk
UngDuong125 Apr 23, 2026
5cf9963
Update gitleaks.toml
UngDuong125 Apr 23, 2026
e254efe
Update gitleaks.toml
UngDuong125 Apr 23, 2026
071749f
Merge pull request #21 from 23120049/snyk
UngDuong125 Apr 23, 2026
d81e095
edit cart ci
23120049 Apr 24, 2026
d6f3f66
edit cart ci
23120049 Apr 24, 2026
41813f6
edit cart
23120049 Apr 24, 2026
60d8547
update parent pom
23120049 Apr 24, 2026
6f0d7d2
edit pom
23120049 Apr 24, 2026
75d3bcf
edit pom
23120049 Apr 24, 2026
b9c18b9
set up jdk 25 to cache maven
23120049 Apr 24, 2026
192168c
edit customer ci
23120049 Apr 24, 2026
862f16f
edit workflows
23120049 Apr 24, 2026
f1295d6
add conditons to run the test result test
thhuon Apr 24, 2026
9260cd3
fix: add condition to add coverage report step
thhuon Apr 24, 2026
f14081d
fix: syntax error at line 111
thhuon Apr 24, 2026
c31669b
update .github/workflows/backoffice-bff-ci.yaml
thhuon Apr 24, 2026
f93cd51
update .github/workflows/customer-ci.yaml
thhuon Apr 24, 2026
4b1f85c
resolve merge conflict
23120049 Apr 25, 2026
baab761
edit payment paypal
23120049 Apr 25, 2026
2c22dc5
ci: add hashFiles guard to dorny test-reporter in all Java service wo…
thhuon Apr 25, 2026
d6bbbde
ci: add coverage steps to sampledata, add test job to storefront, rem…
thhuon Apr 25, 2026
4ea1317
fix(storefront ci): remove test phase
thhuon Apr 25, 2026
8782239
Merge pull request #29 from 23120049/mergeBranch
23120049 Apr 25, 2026
eff43cb
Revert "Merge build and test "
23120049 Apr 25, 2026
6ede929
Merge pull request #31 from 23120049/revert-29-mergeBranch
23120049 Apr 25, 2026
2382d4b
Update workflow-template.yaml
23120049 Apr 25, 2026
8af5a73
Update pom.xml
23120049 Apr 25, 2026
785f446
Merge branch 'main' into mergeBranch
23120049 Apr 25, 2026
ad52501
Merge pull request #33 from 23120049/mergeBranch
23120049 Apr 25, 2026
94fe270
Update payment-paypal-ci.yaml
23120049 Apr 25, 2026
777bf44
Update severity threshold in inventory CI workflow
UngDuong125 Apr 26, 2026
90d7a40
feat(test): add test job
thhuon Apr 27, 2026
27cdbfd
remove(cart-ci): rm step add coverage rp to pr
thhuon Apr 27, 2026
11102a1
fix (customer ci): fix indentation in env block
thhuon Apr 27, 2026
4884e53
fix(backoffice bff): fix if condition of coverage step
thhuon Apr 27, 2026
a823c8f
ci (storefront bff): add test job
thhuon Apr 27, 2026
aa85318
Merge branch 'main' into mergeBranch
thhuon Apr 27, 2026
7ec8b8b
Revert "Merge branch 'main' into mergeBranch"
thhuon Apr 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 69 additions & 6 deletions .github/workflows/backoffice-bff-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
runs-on: ubuntu-latest
env:
FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: 'true'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: ./.github/workflows/actions
- name: Run Maven Build Command
run: mvn clean install -pl backoffice-bff -am -Drevision=1.0-SNAPSHOT
- name: Run Maven Checkstyle
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
run: mvn checkstyle:checkstyle -f backoffice-bff -Dcheckstyle.output.file=backoffice-bff-checkstyle-result.xml
Expand All @@ -35,13 +38,29 @@ jobs:
uses: jwgmeligmeyling/checkstyle-github-action@master
with:
path: '**/backoffice-bff-checkstyle-result.xml'
- name: Run Maven Verify
run: mvn clean verify -f backoffice-bff
- name: Run Maven Package (Skip Broken Checks)
run: mvn clean package -f backoffice-bff -DskipTests -Djacoco.skip=true -Dcheckstyle.skip=true
- name: Analyze with sonar cloud
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -f backoffice-bff
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -f backoffice-bff -Dsonar.projectName="backoffice_bff"
- name: Add executable permission to mvnw
run: chmod +x backoffice-bff/mvnw
- name: Snyk scan
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
uses: snyk/actions/maven@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
JAVA_HOME: ""
JAVA_HOME_25_X64: ""
with:
command: test
args: >
--org=0a44793b-2f71-43df-86cc-e2cfdf5fd460
--file=pom.xml
--severity-threshold=critical
-- -f pom.xml -Drevision=1.0-SNAPSHOT -Dprojects=backoffice-bff
- name: OWASP Dependency Check
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
uses: dependency-check/Dependency-Check_Action@main
Expand All @@ -51,23 +70,67 @@ jobs:
project: 'yas'
path: '.'
format: 'HTML'
# Use args to explicitly tell the CLI to skip Central and/or NVD updates
args: >
--disableCentral
- name: Upload OWASP Dependency Check results
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
uses: actions/upload-artifact@master
with:
name: OWASP Dependency Check Report
path: ${{github.workspace}}/reports
- name: Log in to the Container registry
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/build-push-action@v6
with:
context: ./backoffice-bff
push: true
tags: ghcr.io/nashtech-garage/yas-backoffice-bff:latest
tags: ghcr.io/23120049/yas-backoffice-bff:latest
Test:
runs-on: ubuntu-latest
needs: Build
env:
FROM_ORIGINAL_REPOSITORY: true
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: ./.github/workflows/actions
- name: Run Maven Test
run: mvn clean verify -pl backoffice-bff -am
- name: Upload Test Result Artifacts
uses: actions/upload-artifact@v4
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' && (success() || failure()) }}
with:
name: Backoffice-BFF-Test-Results
path: "backoffice-bff/**/*-reports/TEST*.xml"
- name: Test Results
uses: dorny/test-reporter@v1
if: always() && hashFiles('backoffice-bff/target/surefire-reports/TEST-*.xml') != ''
with:
name: Backoffice-BFF-Unit-Test-Results
path: "backoffice-bff/**/*-reports/TEST*.xml"
reporter: java-junit
- name: Upload Coverage Report Artifacts
uses: actions/upload-artifact@v4
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
with:
name: Backoffice-BFF-Coverage-Report
path: "backoffice-bff/target/site/jacoco/**"
- name: Add coverage report to PR
uses: madrapps/jacoco-report@v1.6.1
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
with:
paths: ${{github.workspace}}/backoffice-bff/target/site/jacoco/jacoco.xml
token: ${{secrets.GITHUB_TOKEN}}
min-coverage-overall: 80
min-coverage-changed-files: 60
title: 'Backoffice BFF Coverage Report'
update-comment: true

18 changes: 8 additions & 10 deletions .github/workflows/backoffice-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
Build:
runs-on: ubuntu-latest
env:
FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
# FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
FROM_ORIGINAL_REPOSITORY: true
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -39,7 +41,7 @@ jobs:
continue-on-error: true
working-directory: backoffice
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.35.0
with:
scan-type: 'fs'
scan-ref: './backoffice'
Expand All @@ -54,32 +56,28 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Log in to the Container registry
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/build-push-action@v6
with:
context: ./backoffice
tags: ghcr.io/nashtech-garage/yas-backoffice:latest
tags: ghcr.io/23120049/yas-backoffice:latest
- name: Run Trivy vulnerability scanner
if: ${{ github.ref == 'refs/heads/main' }}
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.35.0
with:
image-ref: 'ghcr.io/nashtech-garage/yas-backoffice:latest'
image-ref: 'ghcr.io/23120049/yas-backoffice:latest'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Push Docker image
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/build-push-action@v6
with:
push: true
context: ./backoffice
tags: ghcr.io/nashtech-garage/yas-backoffice:latest
tags: ghcr.io/23120049/yas-backoffice:latest
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
104 changes: 82 additions & 22 deletions .github/workflows/cart-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,34 @@ jobs:
Build:
runs-on: ubuntu-latest
env:
FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
# FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
FROM_ORIGINAL_REPOSITORY: true
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: ./.github/workflows/actions
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
cache: 'maven' # One line replaces the whole manual cache block
- name: Run Maven Build Command
run: mvn clean install -pl cart -am
# Build the common-library first, then the cart service
run: |
mvn clean install -pl common-library -DskipTests -Djacoco.skip=true
mvn clean install -pl cart -am -DskipTests -Djacoco.skip=true
run: mvn clean install -pl cart -am -Drevision=1.0-SNAPSHOT
- name: Run Maven Checkstyle
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
run: mvn checkstyle:checkstyle -pl cart -am -Dcheckstyle.output.file=cart-checkstyle-result.xml
run: mvn checkstyle:checkstyle -pl cart -Dcheckstyle.output.file=cart-checkstyle-result.xml
- name: Upload Checkstyle Result
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
uses: jwgmeligmeyling/checkstyle-github-action@master
with:
path: '**/cart-checkstyle-result.xml'
- name: Test Results
uses: dorny/test-reporter@v1
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' && (success() || failure()) }}
with:
name: Cart-Service-Unit-Test-Results
path: "cart/**/*-reports/TEST*.xml"
reporter: java-junit
- name: OWASP Dependency Check
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
uses: dependency-check/Dependency-Check_Action@main
Expand All @@ -53,6 +58,9 @@ jobs:
project: 'yas'
path: '.'
format: 'HTML'
# Use args to explicitly tell the CLI to skip Central and/or NVD updates
args: >
--disableCentral
- name: Upload OWASP Dependency Check results
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
uses: actions/upload-artifact@master
Expand All @@ -63,28 +71,80 @@ jobs:
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -pl cart -am
- name: Add coverage report to PR
uses: madrapps/jacoco-report@v1.6.1
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -pl cart -am -Dsonar.projectName="cart"
- name: Add executable permission to mvnw
run: chmod +x cart/mvnw
- name: Snyk scan
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
uses: snyk/actions/maven@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
JAVA_HOME: ""
JAVA_HOME_25_X64: ""
with:
paths: ${{github.workspace}}/cart/target/site/jacoco/jacoco.xml
token: ${{secrets.GITHUB_TOKEN}}
min-coverage-overall: 80
min-coverage-changed-files: 60
title: 'Cart Coverage Report'
update-comment: true
command: test
args: >
--org=0a44793b-2f71-43df-86cc-e2cfdf5fd460
--file=pom.xml
--severity-threshold=critical
-- -f pom.xml -Drevision=1.0-SNAPSHOT -Dprojects=cart
- name: Log in to the Container registry
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/build-push-action@v6
with:
context: ./cart
push: true
tags: ghcr.io/nashtech-garage/yas-cart:latest
tags: ghcr.io/23120049/yas-cart:latest
Test:
runs-on: ubuntu-latest
needs: Build
env:
FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: ./.github/workflows/actions
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
cache: 'maven' # One line replaces the whole manual cache block
- name: Run Maven Test
run: mvn clean verify -pl cart -am
- name: Upload Test Result Artifacts
uses: actions/upload-artifact@v4
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' && (success() || failure()) }}
with:
name: Cart-Test-Results
path: "cart/**/*-reports/TEST*.xml"
- name: Test Results
uses: dorny/test-reporter@v1
if: always() && hashFiles('cart/**/TEST-*.xml') != ''
with:
name: Cart-Service-Unit-Test-Results
path: "cart/**/*-reports/TEST*.xml"
reporter: java-junit
- name: Upload Coverage Report Artifacts
uses: actions/upload-artifact@v4
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
with:
name: Cart-Coverage-Report
path: "cart/target/site/jacoco/**"
- name: Add coverage report to PR
uses: madrapps/jacoco-report@v1.6.1
if: ${{ env.FROM_ORIGINAL_REPOSITORY == 'true' }}
with:
paths: ${{github.workspace}}/cart/target/site/jacoco/jacoco.xml
token: ${{secrets.GITHUB_TOKEN}}
min-coverage-overall: 80
min-coverage-changed-files: 60
title: 'Cart Coverage Report'
update-comment: true

Loading