Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 23 additions & 23 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
detect-changes:
runs-on: ubuntu-latest
outputs:
gateway: ${{ steps.filter.outputs.gateway }}
authentication: ${{ steps.filter.outputs.authentication }}
authorization-shared: ${{ steps.filter.outputs.authorization-shared }}
reservation: ${{ steps.filter.outputs.reservation }}
payment: ${{ steps.filter.outputs.payment }}
catsnap-gateway: ${{ steps.filter.outputs.catsnap-gateway }}
catsnap-authentication: ${{ steps.filter.outputs.catsnap-authentication }}
catsnap-authorization-shared: ${{ steps.filter.outputs.catsnap-authorization-shared }}
catsnap-reservation: ${{ steps.filter.outputs.catsnap-reservation }}
catsnap-payment: ${{ steps.filter.outputs.catsnap-payment }}
steps:
- uses: actions/checkout@v4

Expand All @@ -21,49 +21,49 @@ jobs:
id: filter
with:
filters: |
gateway:
- 'gateway/**'
authentication:
- 'authentication/**'
authorization-shared:
- 'authorization-shared/**'
reservation:
- 'reservation/**'
payment:
- 'payment/**'
catsnap-gateway:
- 'catsnap-gateway/**'
catsnap-authentication:
- 'catsnap-authentication/**'
catsnap-authorization-shared:
- 'catsnap-authorization-shared/**'
catsnap-reservation:
- 'catsnap-reservation/**'
catsnap-payment:
- 'catsnap-payment/**'

deploy-gateway:
needs: detect-changes
if: needs.detect-changes.outputs.gateway == 'true' || needs.detect-changes.outputs.authorization-shared == 'true'
if: needs.detect-changes.outputs.catsnap-gateway == 'true' || needs.detect-changes.outputs.catsnap-authorization-shared == 'true'
permissions:
contents: read
packages: write
secrets: inherit
uses: ./.github/workflows/deploy-gateway.yml
uses: ./.github/workflows/deploy-catsnap-gateway.yml

deploy-authentication:
needs: detect-changes
if: needs.detect-changes.outputs.authentication == 'true' || needs.detect-changes.outputs.authorization-shared == 'true'
if: needs.detect-changes.outputs.catsnap-authentication == 'true' || needs.detect-changes.outputs.catsnap-authorization-shared == 'true'
permissions:
contents: read
packages: write
secrets: inherit
uses: ./.github/workflows/deploy-authentication.yml
uses: ./.github/workflows/deploy-catsnap-authentication.yml

deploy-reservation:
needs: detect-changes
if: needs.detect-changes.outputs.reservation == 'true' || needs.detect-changes.outputs.authorization-shared == 'true'
if: needs.detect-changes.outputs.catsnap-reservation == 'true' || needs.detect-changes.outputs.catsnap-authorization-shared == 'true'
permissions:
contents: read
packages: write
secrets: inherit
uses: ./.github/workflows/deploy-reservation.yml
uses: ./.github/workflows/deploy-catsnap-reservation.yml

deploy-payment:
needs: detect-changes
if: needs.detect-changes.outputs.payment == 'true'
if: needs.detect-changes.outputs.catsnap-payment == 'true'
permissions:
contents: read
packages: write
secrets: inherit
uses: ./.github/workflows/deploy-payment.yml
uses: ./.github/workflows/deploy-catsnap-payment.yml
70 changes: 35 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
detect-changes:
runs-on: ubuntu-latest
outputs:
gateway: ${{ steps.filter.outputs.gateway }}
mono: ${{ steps.filter.outputs.mono }}
authentication: ${{ steps.filter.outputs.authentication }}
authorization-shared: ${{ steps.filter.outputs.authorization-shared }}
reservation: ${{ steps.filter.outputs.reservation }}
event-schema-shared: ${{ steps.filter.outputs.event-schema-shared }}
payment: ${{ steps.filter.outputs.payment }}
catsnap-gateway: ${{ steps.filter.outputs.catsnap-gateway }}
catsnap-mono: ${{ steps.filter.outputs.catsnap-mono }}
catsnap-authentication: ${{ steps.filter.outputs.catsnap-authentication }}
catsnap-authorization-shared: ${{ steps.filter.outputs.catsnap-authorization-shared }}
catsnap-reservation: ${{ steps.filter.outputs.catsnap-reservation }}
catsnap-event-schema-shared: ${{ steps.filter.outputs.catsnap-event-schema-shared }}
catsnap-payment: ${{ steps.filter.outputs.catsnap-payment }}
common-files: ${{ steps.filter.outputs.common-files }}
steps:
- uses: actions/checkout@v4
Expand All @@ -24,91 +24,91 @@ jobs:
id: filter
with:
filters: |
gateway:
- 'gateway/**'
mono:
- 'mono/**'
authentication:
- 'authentication/**'
authorization-shared:
- 'authorization-shared/**'
reservation:
- 'reservation/**'
event-schema-shared:
- 'event-schema-shared/**'
payment:
- 'payment/**'
catsnap-gateway:
- 'catsnap-gateway/**'
catsnap-mono:
- 'catsnap-mono/**'
catsnap-authentication:
- 'catsnap-authentication/**'
catsnap-authorization-shared:
- 'catsnap-authorization-shared/**'
catsnap-reservation:
- 'catsnap-reservation/**'
catsnap-event-schema-shared:
- 'catsnap-event-schema-shared/**'
catsnap-payment:
- 'catsnap-payment/**'
common-files:
- 'settings.gradle'
- 'gradle/**'
- '.github/workflows/**'

test-gateway:
needs: detect-changes
if: needs.detect-changes.outputs.gateway == 'true' || needs.detect-changes.outputs.authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
if: needs.detect-changes.outputs.catsnap-gateway == 'true' || needs.detect-changes.outputs.catsnap-authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
permissions:
contents: read
checks: write
pull-requests: write
secrets: inherit
uses: ./.github/workflows/test-gateway.yml
uses: ./.github/workflows/test-catsnap-gateway.yml

test-mono:
needs: detect-changes
if: needs.detect-changes.outputs.mono == 'true' || needs.detect-changes.outputs.authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
if: needs.detect-changes.outputs.catsnap-mono == 'true' || needs.detect-changes.outputs.catsnap-authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
permissions:
contents: read
checks: write
pull-requests: write
secrets: inherit
uses: ./.github/workflows/test-mono.yml
uses: ./.github/workflows/test-catsnap-mono.yml

test-authentication:
needs: detect-changes
if: needs.detect-changes.outputs.authentication == 'true' || needs.detect-changes.outputs.authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
if: needs.detect-changes.outputs.catsnap-authentication == 'true' || needs.detect-changes.outputs.catsnap-authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
permissions:
contents: read
checks: write
pull-requests: write
secrets: inherit
uses: ./.github/workflows/test-authentication.yml
uses: ./.github/workflows/test-catsnap-authentication.yml

test-authorization-shared:
needs: detect-changes
if: needs.detect-changes.outputs.authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
if: needs.detect-changes.outputs.catsnap-authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
permissions:
contents: read
checks: write
pull-requests: write
secrets: inherit
uses: ./.github/workflows/test-authorization-shared.yml
uses: ./.github/workflows/test-catsnap-authorization-shared.yml

test-reservation:
needs: detect-changes
if: needs.detect-changes.outputs.reservation == 'true' || needs.detect-changes.outputs.authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
if: needs.detect-changes.outputs.catsnap-reservation == 'true' || needs.detect-changes.outputs.catsnap-authorization-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
permissions:
contents: read
checks: write
pull-requests: write
secrets: inherit
uses: ./.github/workflows/test-reservation.yml
uses: ./.github/workflows/test-catsnap-reservation.yml

test-event-schema-shared:
needs: detect-changes
if: needs.detect-changes.outputs.event-schema-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
if: needs.detect-changes.outputs.catsnap-event-schema-shared == 'true' || needs.detect-changes.outputs.common-files == 'true'
permissions:
contents: read
checks: write
pull-requests: write
secrets: inherit
uses: ./.github/workflows/test-event-schema-shared.yml
uses: ./.github/workflows/test-catsnap-event-schema-shared.yml

test-payment:
needs: detect-changes
if: needs.detect-changes.outputs.payment == 'true' || needs.detect-changes.outputs.common-files == 'true'
if: needs.detect-changes.outputs.catsnap-payment == 'true' || needs.detect-changes.outputs.common-files == 'true'
permissions:
contents: read
checks: write
pull-requests: write
secrets: inherit
uses: ./.github/workflows/test-payment.yml
uses: ./.github/workflows/test-catsnap-payment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./authentication/Dockerfile
file: ./catsnap-authentication/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./gateway/Dockerfile
file: ./catsnap-gateway/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./payment/Dockerfile
file: ./catsnap-payment/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./reservation/Dockerfile
file: ./catsnap-reservation/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,26 @@ jobs:
run: chmod +x gradlew

- name: Test authentication module
run: ./gradlew --info :authentication:test
run: ./gradlew --info :catsnap-authentication:test

- name: Publish test results for authentication
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: 'authentication/build/test-results/test/TEST-*.xml'
check_name: Test Results (authentication)
files: 'catsnap-authentication/build/test-results/test/TEST-*.xml'
check_name: Test Results (catsnap-authentication)

- name: Publish test report for authentication
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: 'authentication/build/test-results/test/TEST-*.xml'
check_name: Test Report (authentication)
report_paths: 'catsnap-authentication/build/test-results/test/TEST-*.xml'
check_name: Test Report (catsnap-authentication)

- name: Upload coverage reports to Codecov for authentication
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: authentication/build/reports/jacoco/test/jacocoTestReport.xml
flags: authentication
name: authentication-coverage
files: catsnap-authentication/build/reports/jacoco/test/jacocoTestReport.xml
flags: catsnap-authentication
name: catsnap-authentication-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,26 @@ jobs:
run: chmod +x gradlew

- name: Test authorization-shared module
run: ./gradlew --info :authorization-shared:test
run: ./gradlew --info :catsnap-authorization-shared:test

- name: Publish test results for authorization-shared
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: 'authorization-shared/build/test-results/test/TEST-*.xml'
check_name: Test Results (authorization-shared)
files: 'catsnap-authorization-shared/build/test-results/test/TEST-*.xml'
check_name: Test Results (catsnap-authorization-shared)

- name: Publish test report for authorization-shared
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: 'authorization-shared/build/test-results/test/TEST-*.xml'
check_name: Test Report (authorization-shared)
report_paths: 'catsnap-authorization-shared/build/test-results/test/TEST-*.xml'
check_name: Test Report (catsnap-authorization-shared)

- name: Upload coverage reports to Codecov for authorization-shared
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: authorization-shared/build/reports/jacoco/test/jacocoTestReport.xml
flags: authorization-shared
name: authorization-shared-coverage
files: catsnap-authorization-shared/build/reports/jacoco/test/jacocoTestReport.xml
flags: catsnap-authorization-shared
name: catsnap-authorization-shared-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,26 @@ jobs:
run: chmod +x gradlew

- name: Test event-schema-shared module
run: ./gradlew --info :event-schema-shared:test
run: ./gradlew --info :catsnap-event-schema-shared:test

- name: Publish test results for event-schema-shared
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: 'event-schema-shared/build/test-results/test/TEST-*.xml'
check_name: Test Results (event-schema-shared)
files: 'catsnap-event-schema-shared/build/test-results/test/TEST-*.xml'
check_name: Test Results (catsnap-event-schema-shared)

- name: Publish test report for event-schema-shared
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: 'event-schema-shared/build/test-results/test/TEST-*.xml'
check_name: Test Report (event-schema-shared)
report_paths: 'catsnap-event-schema-shared/build/test-results/test/TEST-*.xml'
check_name: Test Report (catsnap-event-schema-shared)

- name: Upload coverage reports to Codecov for event-schema-shared
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: event-schema-shared/build/reports/jacoco/test/jacocoTestReport.xml
flags: event-schema-shared
name: event-schema-shared-coverage
files: catsnap-event-schema-shared/build/reports/jacoco/test/jacocoTestReport.xml
flags: catsnap-event-schema-shared
name: catsnap-event-schema-shared-coverage
Loading