chore: develop pull request, develop build deploy 워크플로 환경 변수 설정 스텝 수정 #18
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 secrets into .env file | |
| run: | | |
| echo "${{ secrets.ENV }}" >> .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' }} |