[RELEASE] v2.2.6 PR μμ± μ ν μ€νΈ μλ μ€ν CI μν¬νλ‘μ° μΆκ° #3
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: EAT-SSU Server PR ν μ€νΈ κ²μ΄νΈ | |
| on: | |
| pull_request: | |
| branches: [ "develop", "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mysql:8.0 | |
| env: | |
| MYSQL_DATABASE: eatssu_test | |
| MYSQL_ROOT_PASSWORD: test | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping -h localhost" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=10 | |
| env: | |
| EATSSU_DB_URL_TEST: jdbc:mysql://localhost:3306/eatssu_test | |
| EATSSU_DB_USERNAME: root | |
| EATSSU_DB_PASSWORD: test | |
| EATSSU_AWS_ACCESS_KEY_DEV: dummy-access-key | |
| EATSSU_AWS_SECRET_KEY_DEV: dummy-secret-key | |
| EATSSU_SLACK_TOKEN: dummy-slack-token | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: JDK 17 μ€μΉ | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Gradle μΊμ± | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: gradlew μ€ν κΆν λΆμ¬ | |
| run: chmod +x gradlew | |
| - name: ν μ€νΈμ© JWT μν¬λ¦Ώ μμ± | |
| run: echo "EATSSU_JWT_SECRET_TEST=$(openssl rand -base64 64 | tr -d '\n')" >> "$GITHUB_ENV" | |
| - name: ν μ€νΈ μ€ν | |
| run: ./gradlew test --no-daemon | |
| - name: ν μ€νΈ 리ν¬νΈ μ λ‘λ | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: build/reports/tests/test |