Skip to content

Commit

Permalink
fix(actions-test): Java 실행환경 통일을 위한 jobs 병합
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobby-Kim authored Jul 17, 2024
1 parent b63c9a3 commit 31e11cc
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/be-pr-code-coverage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ on:
- be/develop

jobs:
setup_and_cache:
test-coverage-pr-opened:
if: startsWith(github.head_ref, 'be-')
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 17
id: setup-java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
Expand All @@ -40,20 +42,14 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
test_and_report:
runs-on: ubuntu-latest
needs: setup_and_cache
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: gradlew 권한 할당
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run tests and generate coverage report
env:
JAVA_HOME: ${{ steps.setup-java.outputs.java-home }}
run: ./gradlew test jacocoTestReport
continue-on-error: true

- name: Verify test coverage
env:
Expand Down

0 comments on commit 31e11cc

Please sign in to comment.