[Refactor/#525] 이벤트 라이브러리 개선 #326
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: Validate Test | |
on: | |
pull_request: | |
branches: [ "main", "dev" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }} | |
jobs: | |
setup-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up JDK 18 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '18' | |
distribution: 'temurin' | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
api-test: | |
needs: setup-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 18 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '18' | |
distribution: 'temurin' | |
- name: Test with Gradle | |
run: | | |
./gradlew test |