-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from swm-standard/seyeon/swm-175
Feat: GitActions ์ Jacoco ์ฐ๋
- Loading branch information
Showing
1 changed file
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
permissions: write-all | ||
|
||
jobs: | ||
build: | ||
setting: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -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 |