From f47d6a17a63bec918c0a0b68ae95738f2a9a726e Mon Sep 17 00:00:00 2001 From: Sanghyun Yi Date: Thu, 10 Jul 2025 00:13:52 +0900 Subject: [PATCH 1/4] =?UTF-8?q?infra:=20pr-ci=20workflows=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=9D=BC=EB=B6=80=20=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20main=20=EB=B8=8C=EB=9E=9C?= =?UTF-8?q?=EC=B9=98=20=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-ci.yml | 7 +++---- .github/workflows/push-ci.yml | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/push-ci.yml diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 32420189..064421e2 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -2,8 +2,8 @@ name: Spring CI for Pull Request on: pull_request: - branches: [ main, dev ] - types: [opened, synchronize, reopened] + branches: [ dev, main ] + types: [ opened, synchronize, reopened ] permissions: contents: write @@ -45,10 +45,9 @@ jobs: - name: Upload JaCoCo report to Codecov uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} # public repo라면 생략 가능 files: build/reports/jacoco/test/jacocoTestReport.xml fail_ci_if_error: true - flags: unittests + flags: pr verbose: true - name: Extract JaCoCo Coverage Percentage diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml new file mode 100644 index 00000000..0fa2466b --- /dev/null +++ b/.github/workflows/push-ci.yml @@ -0,0 +1,4 @@ +name: push-ci.yml +on: + +jobs: From 4b67df5d1bed1bc268c87397f6234fed2d561376 Mon Sep 17 00:00:00 2001 From: Sanghyun Yi Date: Thu, 10 Jul 2025 00:14:25 +0900 Subject: [PATCH 2/4] =?UTF-8?q?infra:=20push-ci=20workflows=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/push-ci.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml index 0fa2466b..f914899d 100644 --- a/.github/workflows/push-ci.yml +++ b/.github/workflows/push-ci.yml @@ -1,4 +1,37 @@ -name: push-ci.yml +name: Upload Coverage on Push + on: + push: + branches: [ dev, main ] + +permissions: + contents: read jobs: + upload-coverage: + name: Upload Coverage to Codecov + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Run Tests and Generate Coverage + run: ./gradlew clean test jacocoTestReport --no-daemon + + - name: Upload JaCoCo report to Codecov + uses: codecov/codecov-action@v4 + with: + files: build/reports/jacoco/test/jacocoTestReport.xml + fail_ci_if_error: true + flags: dev + verbose: true From bafd0428c92db67714c7af92485638258bc92029 Mon Sep 17 00:00:00 2001 From: Sanghyun Yi Date: Thu, 10 Jul 2025 00:15:42 +0900 Subject: [PATCH 3/4] =?UTF-8?q?chore:=20gitnignore=EC=97=90=20node=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=ED=8C=8C=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 0b241703..4539816f 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,8 @@ spy.log ### Spring Boot ### application.yml + +### node ### +node_modules/ +package-lock.json +package.json \ No newline at end of file From 82c09f67808991e351300960de904f5767ce9414 Mon Sep 17 00:00:00 2001 From: Sanghyun Yi Date: Thu, 10 Jul 2025 00:24:31 +0900 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20pr-ci=20workflows=EC=97=90=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 064421e2..13307b73 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -45,6 +45,7 @@ jobs: - name: Upload JaCoCo report to Codecov uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} files: build/reports/jacoco/test/jacocoTestReport.xml fail_ci_if_error: true flags: pr