Skip to content

Commit

Permalink
Update pull-request-intergration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YeaChan05 authored Feb 8, 2024
1 parent 33839c5 commit 819a348
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/pull-request-intergration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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() }}
Expand Down

0 comments on commit 819a348

Please sign in to comment.