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 961b60d commit 4edbc76
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 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,18 +22,22 @@ permissions:
pull-requests: write

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

setup:
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.cache-dependencies.outputs.cache-key }}

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'corretto'

- name: Caching Dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
path: |
Expand All @@ -47,21 +51,38 @@ jobs:
- 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: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8

build:
needs: setup
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build with Gradle
run: ./gradlew build -x test

test:
needs: [setup,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:
- uses: actions/checkout@v4
- name: Report Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ always() }}
Expand Down

0 comments on commit 4edbc76

Please sign in to comment.