From b6f1fbabb6fe66d4ae14d5fcbdc75ea4b052a9be Mon Sep 17 00:00:00 2001 From: inhyeok Date: Mon, 24 Jun 2024 10:55:19 +0900 Subject: [PATCH] =?UTF-8?q?Feat(*):=20CI=20action=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/devcd.yml | 2 +- .github/workflows/devci.yml | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/devci.yml diff --git a/.github/workflows/devcd.yml b/.github/workflows/devcd.yml index bef667b..dd1b58b 100644 --- a/.github/workflows/devcd.yml +++ b/.github/workflows/devcd.yml @@ -1,6 +1,6 @@ on: push: - branches: [ "develop" ,"feature/*" ] + branches: [ "develop" ] workflow_dispatch: diff --git a/.github/workflows/devci.yml b/.github/workflows/devci.yml new file mode 100644 index 0000000..c4465ee --- /dev/null +++ b/.github/workflows/devci.yml @@ -0,0 +1,42 @@ +name: "dev ci " + +on: + pull_request: + types: [ opened ] + branches: + - "develop" + workflow_dispatch: + + + + +jobs: + gradle-docker-build: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + - name: CI start send message + uses: jabiseo/slack-custom-bot@main + with: + mode: PR + channelId: "${{ secrets.NOTI_CHANNEL_ID }}" + text: "PullRequest 요청" + statusColor: "#ebe834" + env: + SLACK_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + + + - uses: actions/setup-java@v3 + with: + java-version: "17" + distribution: "oracle" + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: gradle build + run: | + ./gradlew test -x bootJar + +