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 819a348 commit 3e5a11e
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/pull-request-intergration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: integrate pull request with test
name: Integrate Pull Request with Test

on:
push:
Expand All @@ -22,17 +22,15 @@ 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
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'corretto'

- name: Caching Dependencies
uses: actions/cache@v3
with:
Expand All @@ -42,26 +40,33 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8

- 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


build:
needs: setup
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

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8

report:
needs: test
runs-on: ubuntu-latest
steps:
- name: Report Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ always() }}
Expand Down

0 comments on commit 3e5a11e

Please sign in to comment.