Skip to content

M3-138 Qodana 연동, Jacoco 적용 #17

M3-138 Qodana 연동, Jacoco 적용

M3-138 Qodana 연동, Jacoco 적용 #17

Workflow file for this run

name: BackEnd CI
on:
pull_request:
branches:
- develop
jobs:
build_and_test:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: JDK 17 설치
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
- name: Grant execute permission to gradlew
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Test with Gradle
run: ./gradlew test
- name: Comment test coverage on PR
id: jacoco
uses: madrapps/jacoco-report@v1.2
with:
title: 📝 테스트 커버리지 리포트
paths: ${{ github.workspace }}/build/jacocoReport/test/html/index.xml
token: ${{ secrets.GITHUB_TOKEN }}
# min-coverage-overall: 50
# min-coverage-changed-files: 50
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}