[CHORE] 인프라 수정 #177
Workflow file for this run
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 API TEST | |
| on: | |
| pull_request: | |
| branches: [ main, release, develop ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: . | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'corretto' | |
| java-version: '17' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Grant execute permission for run-test-mysql-redis.sh | |
| run: chmod +x run-test-mysql-redis.sh | |
| - name: Start MySQL for testing | |
| run: ./run-test-mysql-redis.sh | |
| - name: Test & Build | |
| run: ./gradlew build | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: ${{ always() }} | |
| with: | |
| files: ${{ github.workspace }}/build/test-results/**/*.xml | |
| seconds_between_github_reads: 1.0 | |
| seconds_between_github_writes: 3.0 | |
| secondary_rate_limit_wait_seconds: 90.0 | |
| - name: When test fail, comment on that code | |
| uses: mikepenz/action-junit-report@v3 | |
| if: always() | |
| with: | |
| report_paths: ${{ github.workspace }}/build/test-results/**/*.xml | |
| token: ${{ github.token }} |