Skip to content

Commit

Permalink
feat: codecoverage.yml로 추출
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe916 committed Jan 5, 2024
1 parent 6284802 commit 3bdda5f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ name: CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches:
- main

permissions:
contents: read
Expand Down Expand Up @@ -43,12 +40,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./build/jacoco/index.xml

# gradlew 파일 권한 지정
- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
37 changes: 37 additions & 0 deletions codecoverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Code Coverage

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'

jobs:
code-coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# JDK 17 설정
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'oracle'

# Gradle 설정
- name: Setup Gradle
uses: gradle/gradle-build-action@v2


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

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./build/jacoco/index.xml

0 comments on commit 3bdda5f

Please sign in to comment.