From 940061e815341243eefe6e961fa424bd59451980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=82=99=ED=97=8C?= <95845037+nak-honest@users.noreply.github.com> Date: Tue, 16 Jul 2024 17:14:06 +0900 Subject: [PATCH] =?UTF-8?q?[Feature]=20-=20PR=EC=9D=84=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=ED=95=A0=20=EB=95=8C=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EB=B0=8F=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=ED=95=98=EB=8A=94=20?= =?UTF-8?q?CI=20Workflow=20=EC=B6=94=EA=B0=80=20(#41)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: pull request workflow 생성 * refactor: github action workflow yml 파일 이름 변경 - be-pull-request.yml -> be-ci.yml - be-dev-ci-cd.yml -> be-cd-dev.yml --- .../{be-dev-ci-cd.yml => be-cd-dev.yml} | 2 +- .github/workflows/be-ci.yml | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) rename .github/workflows/{be-dev-ci-cd.yml => be-cd-dev.yml} (98%) create mode 100644 .github/workflows/be-ci.yml diff --git a/.github/workflows/be-dev-ci-cd.yml b/.github/workflows/be-cd-dev.yml similarity index 98% rename from .github/workflows/be-dev-ci-cd.yml rename to .github/workflows/be-cd-dev.yml index 0662ccfb..8a8bd27f 100644 --- a/.github/workflows/be-dev-ci-cd.yml +++ b/.github/workflows/be-cd-dev.yml @@ -1,4 +1,4 @@ -name: BE DEV CI/CD +name: BE CD DEV on: push: diff --git a/.github/workflows/be-ci.yml b/.github/workflows/be-ci.yml new file mode 100644 index 00000000..05ac48a5 --- /dev/null +++ b/.github/workflows/be-ci.yml @@ -0,0 +1,41 @@ +name: BE CI + +on: + pull_request: + branches: [ production/be, develop/be ] + +jobs: + build: + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + working-directory: ./backend + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Test with Gradle + run: ./gradlew build + + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + if: ${{ always() }} + with: + files: ./build/test-results/**/*.xml + + - name: When test fail, comment on that code + uses: mikepenz/action-junit-report@v3 + if: always() + with: + report_paths: ./build/test-results/**/*.xml + token: ${{ github.token }}