Skip to content

feature: CI 파이프 라인 구축 #47

feature: CI 파이프 라인 구축

feature: CI 파이프 라인 구축 #47

Workflow file for this run

name: 'sports_echo_ci'
on:
push:
branches:
- "feature/*"
- "CICD"
pull_request:
branches:
- "dev1"
- "CICD"
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