From f0f4d4a56fa8bc32b155c7d7d00a54c686120aa7 Mon Sep 17 00:00:00 2001 From: kelly6bf Date: Fri, 26 Jul 2024 10:15:10 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20CI/CD=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/{be-main-cd.yml => be-cd.yml} | 0 .../workflows/{be-main-ci.yml => be-ci.yml} | 2 +- .github/workflows/be-dev-ci.yml | 68 ------------------- 3 files changed, 1 insertion(+), 69 deletions(-) rename .github/workflows/{be-main-cd.yml => be-cd.yml} (100%) rename .github/workflows/{be-main-ci.yml => be-ci.yml} (97%) delete mode 100644 .github/workflows/be-dev-ci.yml diff --git a/.github/workflows/be-main-cd.yml b/.github/workflows/be-cd.yml similarity index 100% rename from .github/workflows/be-main-cd.yml rename to .github/workflows/be-cd.yml diff --git a/.github/workflows/be-main-ci.yml b/.github/workflows/be-ci.yml similarity index 97% rename from .github/workflows/be-main-ci.yml rename to .github/workflows/be-ci.yml index c5d59751..f18c62f3 100644 --- a/.github/workflows/be-main-ci.yml +++ b/.github/workflows/be-ci.yml @@ -2,7 +2,7 @@ name: Coduo Backend CI on: pull_request: - branches: [ "BE/main" ] + branches: [ "BE/main", "BE/dev" ] permissions: write-all jobs: diff --git a/.github/workflows/be-dev-ci.yml b/.github/workflows/be-dev-ci.yml deleted file mode 100644 index fed67aa0..00000000 --- a/.github/workflows/be-dev-ci.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Coduo Backend CI - -on: - pull_request: - branches: [ "BE/dev" ] - -permissions: write-all -jobs: - build-and-test: - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./backend - steps: - - name: checkout - uses: actions/checkout@v3 - - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'corretto' - - - name: Set up Test MySQL - uses: mirromutth/mysql-action@v1.1 - with: - host port: 3306 - container port: 3306 - mysql database: 'testdb' - mysql root password: testPw1234! - - - name: Make test application.yml - run: | - rm -rf ./src/main/resources/application.yml - touch ./src/main/resources/application.yml - echo ${{ secrets.BE_TEST_YML }} | base64 --decode > ./src/main/resources/application.yml - shell: bash - - - name: Gradle Caching - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Grant Execute Permission For Gradlew - run: chmod +x gradlew - - - name: Build With Gradle - run: ./gradlew build -x test - - - name: Running Test Code - run: ./gradlew --info test - - - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@v1 - if: ${{ always() }} - with: - files: build/test-results/**/*.xml - - - name: Publish Test Report - uses: mikepenz/action-junit-report@v3 - if: success() || failure() # always run even if the previous step fails - with: - report_paths: '**/build/test-results/test/TEST-*.xml'