Introduce DTO-based user APIs, global validation handler, AjaxResult helpers, and refactor plan #28
This file contains hidden or 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
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - work | |
| jobs: | |
| upgrade-readiness-precheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '8' | |
| cache: maven | |
| - name: Upgrade readiness precheck | |
| run: ./scripts/upgrade-precheck.sh --strict --report build/upgrade-precheck-report.txt | |
| - name: Upload upgrade precheck report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: upgrade-precheck-report | |
| path: build/upgrade-precheck-report.txt | |
| - name: Build upgrade execution checklist | |
| if: always() | |
| run: ./scripts/upgrade-build-checklist.sh build/upgrade-precheck-report.txt build/upgrade-execution-checklist.md config/upgrade-owners.map --fail-on-unmapped | |
| - name: Upload upgrade execution checklist | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: upgrade-execution-checklist | |
| path: build/upgrade-execution-checklist.md | |
| - name: Publish upgrade precheck summary | |
| if: always() | |
| run: | | |
| echo "## Upgrade readiness precheck" >> "$GITHUB_STEP_SUMMARY" | |
| if [ -f build/upgrade-precheck-report.txt ]; then | |
| while IFS='=' read -r key value; do | |
| echo "- \`${key}\`: ${value}" >> "$GITHUB_STEP_SUMMARY" | |
| done < build/upgrade-precheck-report.txt | |
| else | |
| echo "- report not found" >> "$GITHUB_STEP_SUMMARY" | |
| fi | |
| echo "" >> "$GITHUB_STEP_SUMMARY" | |
| echo "## Upgrade execution checklist artifact" >> "$GITHUB_STEP_SUMMARY" | |
| echo "- artifact: \`upgrade-execution-checklist\`" >> "$GITHUB_STEP_SUMMARY" | |
| unit-and-validation-tests: | |
| needs: upgrade-readiness-precheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '8' | |
| cache: maven | |
| - name: Smoke gate | |
| run: ./scripts/test-gate.sh smoke | |
| full-regression: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '8' | |
| cache: maven | |
| - name: Full test suite | |
| run: ./scripts/test-gate.sh full |