Feat: 후기 투표 조회 API 구현 #66
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Generate environment file | |
run: | | |
mkdir -p env | |
echo "${{secrets.DOCKER_COMPOSE_ENV}}" >> env/docker-compose.env | |
echo "${{secrets.AWS_ENV}}" >> env/aws.env | |
echo "${{secrets.TEST_DB_ENV}}" >> env/test-db.env | |
echo "${{secrets.DEV_DB_ENV}}" >> env/dev-db.env | |
echo "${{secrets.TEST_REDIS_ENV}}" >> env/test-redis.env | |
echo "${{secrets.DEV_REDIS_ENV}}" >> env/dev-redis.env | |
- name: Run docker DB, Redis container | |
run: | | |
docker-compose -f ./docker/docker-compose.yml up -d db | |
docker-compose -f ./docker/docker-compose.yml up -d redis | |
- name: Get execution permission to gradlew | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew clean build |