global response 처리 방식 수정 #12
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: Java CI with Gradle | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 체크아웃 | |
uses: actions/checkout@v3 | |
- name: JDK 17 설치 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: 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- | |
- name: Gradle 권한 부여 | |
run: chmod +x gradlew | |
shell: bash | |
- name: Gradle build 수행 | |
run: ./gradlew build -x test -x asciidoctor -Pjasypt.encryptor.password=${{ secrets.JASYPT_PASSWORD }} | |
shell: bash | |
- name: prod 환경에서 Gradle test 수행 | |
run: ./gradlew clean test -Pprofile=prod | |
shell: bash |