Skip to content

fixh-29-feature-add-enum-utility (#30) #13

fixh-29-feature-add-enum-utility (#30)

fixh-29-feature-add-enum-utility (#30) #13

Workflow file for this run

name: main
on:
push:
branches: [ "main" ]
jobs:
main:
name: main branch build on push
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Set up JDK
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant 권한 수정
run: chmod +x gradlew
- name: Gradle 빌드
run: ./gradlew build
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
with:
generate-branches-badge: true
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit the badge (if it changed)
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name 'ppzxc'
git config --global user.email 'cjh8487@naver.com'
git add -A
git commit -m "Autogenerated JaCoCo coverage badge"
fi
- name: Push badge commit
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.extract_branch.outputs.branch }}