[Feat/#454] api/v2 시큐리티 설정 추가 #230
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: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
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 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Jooq Code Generation | |
run: | | |
./gradlew jooqCodegenAll | |
- name: API Test with Gradle | |
run: | | |
./gradlew api:test |