diff --git a/.github/workflows/pull-request-intergration.yml b/.github/workflows/pull-request-intergration.yml index bc77f2754..6cec5ad61 100644 --- a/.github/workflows/pull-request-intergration.yml +++ b/.github/workflows/pull-request-intergration.yml @@ -22,21 +22,17 @@ permissions: pull-requests: write jobs: - setup: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest # 실행 환경 지정 + steps: - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v3 with: java-version: 17 - distribution: 'temurin' + distribution: 'corretto' - cache-dependencies: - needs: setup - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - name: Caching Dependencies uses: actions/cache@v3 with: @@ -46,33 +42,26 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - - build: - needs: cache-dependencies - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 + + - run: touch ./src/main/resources/application-secret.yml + - run: echo "${{ secrets.SECRET_KEY }}" > ./src/main/resources/application-secret.yml + - run: cat ./src/main/resources/application-secret.yml + + - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Build with Gradle run: ./gradlew build -x test - test: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - name: Test with Gradle run: ./gradlew test - report: - needs: test - runs-on: ubuntu-latest - steps: - name: Setup Python uses: actions/setup-python@v4 with: python-version: 3.8 + - name: Report Test Results uses: EnricoMi/publish-unit-test-result-action@v2 if: ${{ always() }}