This repository was archived by the owner on Nov 23, 2025. It is now read-only.
feat: Reintroduce GitHub Actions workflow for building and testing Ad… #1
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: Build and Test Admin Service | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| build-test: | |
| name: Install, Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Build with Maven | |
| run: mvn -B clean package --file admin-service/pom.xml | |
| - name: Run Tests | |
| run: mvn -B test --file admin-service/pom.xml | |
| - name: Upload Test Results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: admin-service-test-results | |
| path: admin-service/target/surefire-reports/ | |
| - name: Upload Build Artifact | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: admin-service-jar | |
| path: admin-service/target/*.jar |