Skip to content

🔀 :: 레디스 캐시 적용 #425

🔀 :: 레디스 캐시 적용

🔀 :: 레디스 캐시 적용 #425

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_DATABASE: ${{ secrets.MYSQL_DB }}
ports:
- 3306:3306
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 7
redis-port: 6379
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create application.yml
run: |
rm ./src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }}" > ./src/main/resources/application.yml
shell: bash
- name: Build with Gradle
run: ./gradlew clean build -x test