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 7, 2024
1 parent fa8fbab commit e329343
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/pull-request-intergration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ permissions:
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest # 실행 환경 지정

setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
Expand All @@ -33,6 +32,11 @@ jobs:
java-version: '17'
distribution: 'temurin'

cache-dependencies:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Caching Dependencies
uses: actions/cache@v3
with:
Expand All @@ -42,22 +46,33 @@ 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
- 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 e329343

Please sign in to comment.