#69 test(Hotdeal) : 핫딜 테스트 코드 #63
This file contains 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: 'sports_echo_ci' | |
on: | |
push: | |
branches: | |
- "feature/*" | |
- "test/*" | |
pull_request: | |
branches: | |
- "dev1" | |
permissions: write-all | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
ADMIN_SECRET_KEY: ${{ secrets.ADMIN_SECRET_KEY }} | |
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} | |
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} | |
BASEBALL_API_KEY: ${{ secrets.BASEBALL_API_KEY }} | |
BASKETBALL_API_KEY: ${{ secrets.BASKETBALL_API_KEY }} | |
FOOTBALL_API_KEY: ${{ secrets.FOOTBALL_API_KEY }} | |
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
GOOGLE_API_SECRET: ${{ secrets.GOOGLE_API_SECRET }} | |
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} | |
KAKAO_API_KEY: ${{ secrets.KAKAO_API_KEY }} | |
NAVER_API_KEY: ${{ secrets.NAVER_API_KEY }} | |
NAVER_API_SECRET: ${{ secrets.NAVER_API_SECRET }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: setup jdk | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Start Redis | |
uses: supercharge/redis-github-action@1.1.0 | |
with: | |
redis-version: 6 | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: gradlew test | |
run: ./gradlew test | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: ${{ always() }} | |
with: | |
files: build/test-results/**/*.xml |