Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: GitActions 와 Jacoco 연동 #213

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions .github/workflows/develop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
permissions: write-all

jobs:
build:
setting:
runs-on: ubuntu-latest

steps:
Expand All @@ -21,23 +21,28 @@ jobs:

- name: Set up properties
run: |
cd src/main
mkdir resources
cd resources
touch application.properties
echo "${{ secrets.APPLICATION }}" > application.properties
cat application.properties
cd src/main
mkdir resources
cd resources
touch application.properties
echo "${{ secrets.APPLICATION }}" > application.properties
cat application.properties

shell: bash

- name: Grant execute permission for gradlew
run: chmod +x gradlew


- name: Test with Gradle
run: ./gradlew clean build jacocoTestReport
run: ./gradlew clean jacocoTestReport

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
- name: Add coverage to PR
id: jacoco
uses: madrapps/[email protected]
with:
files: build/test-results/**/*.xml
paths: ${{ github.workspace }}/build/jacoco/index.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: "테스트 커버리지 측정"
min-coverage-overall: 40
min-coverage-changed-files: 40
Loading