chore: rename springboot app folder to backend (#752)
This commit is contained in:
@@ -2,7 +2,7 @@ version: 2
|
||||
updates:
|
||||
# Backend – Gradle (Java / Spring)
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "/booklore-api"
|
||||
directory: "/backend"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "friday"
|
||||
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
HEAD_REF: ${{ steps.normalize_refs.outputs.head_ref }}
|
||||
run: |
|
||||
echo "Comparing ${BASE_REF}...${HEAD_REF}"
|
||||
if git diff --name-only "${BASE_REF}...${HEAD_REF}" | grep -Eq "^booklore-api/src/main/resources/db/migration/V.*\\.sql$"; then
|
||||
if git diff --name-only "${BASE_REF}...${HEAD_REF}" | grep -Eq "^backend/src/main/resources/db/migration/V.*\\.sql$"; then
|
||||
echo "Migration file changes detected. Proceeding with migration preview."
|
||||
echo "has_migrations=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
@@ -101,7 +101,7 @@ jobs:
|
||||
flyway/flyway:12.1.0 \
|
||||
-url=jdbc:mariadb://127.0.0.1:3306/booklore_test \
|
||||
-user=root -password=root \
|
||||
-locations=filesystem:/flyway/sql/booklore-api/src/main/resources/db/migration \
|
||||
-locations=filesystem:/flyway/sql/backend/src/main/resources/db/migration \
|
||||
migrate
|
||||
|
||||
- name: Checkout Head Branch
|
||||
@@ -121,7 +121,7 @@ jobs:
|
||||
flyway/flyway:12.1.0 \
|
||||
-url=jdbc:mariadb://127.0.0.1:3306/booklore_test \
|
||||
-user=root -password=root \
|
||||
-locations=filesystem:/flyway/sql/booklore-api/src/main/resources/db/migration \
|
||||
-locations=filesystem:/flyway/sql/backend/src/main/resources/db/migration \
|
||||
migrate
|
||||
|
||||
- name: Confirm Flyway Dry Run Success
|
||||
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: gradle-${{ runner.os }}-${{ hashFiles('booklore-api/**/*.gradle*', 'booklore-api/settings.gradle*', 'booklore-api/gradle.properties', 'booklore-api/gradle/wrapper/gradle-wrapper.properties') }}
|
||||
key: gradle-${{ runner.os }}-${{ hashFiles('backend/**/*.gradle*', 'backend/settings.gradle*', 'backend/gradle.properties', 'backend/gradle/wrapper/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
gradle-${{ runner.os }}-
|
||||
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
|
||||
if: ${{ always() && inputs.publish_test_results }}
|
||||
with:
|
||||
files: booklore-api/build/test-results/**/*.xml
|
||||
files: backend/build/test-results/**/*.xml
|
||||
check_name: Backend Test Results
|
||||
|
||||
- name: Upload Backend Test Reports
|
||||
@@ -86,8 +86,8 @@ jobs:
|
||||
with:
|
||||
name: backend-test-reports
|
||||
path: |
|
||||
booklore-api/build/reports/tests/
|
||||
booklore-api/build/test-results/
|
||||
backend/build/reports/tests/
|
||||
backend/build/test-results/
|
||||
retention-days: 30
|
||||
|
||||
- name: Save Gradle Cache
|
||||
|
||||
Reference in New Issue
Block a user