chore: develop pull request, develop build deploy 워크플로 환경 변수 설정 스텝 수정 #12
This file contains hidden or 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: develop pull request Check and Test | |
| on: | |
| pull_request: | |
| branches: [ "develop" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 체크아웃 | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # JDK 17 세팅 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| # Gradlew 생행 권한 허용 | |
| - name: Grant Execute Permission for Gradlew | |
| run: chmod +x ./gradlew | |
| # ENV 설정 | |
| - name: Load ENV into Environment Variable | |
| run: | | |
| echo "${{ secrets.ENV }}" >> $GITHUB_ENV | |
| while IFS= read -r line; do | |
| echo "::add-mask::$line" | |
| done <<< "${{ secrets.ENV }}" | |
| # Gradle setup, check(코드 품질 관리, 테스트) 실행 | |
| - name: Setup Gradle | |
| uses: gradle/gradle-build-action@v2 | |
| with: | |
| arguments: check | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} |