fix : test.yml 수정 #51
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/*" ] | |
pull_request: | |
branches: [ "dev1" ] | |
permissions: write-all | |
jobs: | |
build: | |
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: | |
- uses: actions/checkout@v3 | |
name: Run chmod to make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Java Setup | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
- name: Start Redis | |
uses: supercharge/redis-github-action@1.1.0 | |
with: | |
redis-version: 6 | |
- name: Test with Gradle | |
run: | | |
./gradlew test | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: ${{ always() }} | |
with: | |
files: build/test-results/**/*.xml |