From d5098c8fee48f565013d2164c57d9445d690fd48 Mon Sep 17 00:00:00 2001 From: le2sky Date: Thu, 9 Jan 2025 14:30:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ci=20v1=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/maeilmail-main-ci.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/maeilmail-main-ci.yml diff --git a/.github/maeilmail-main-ci.yml b/.github/maeilmail-main-ci.yml new file mode 100644 index 0000000..f89c021 --- /dev/null +++ b/.github/maeilmail-main-ci.yml @@ -0,0 +1,47 @@ +name: 매일메일 CI(v1) + +permissions: + contents: write + pull-requests: write + checks: write + +on: + pull_request: + branches: + - 'main' + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Github Checkout + uses: actions/checkout@v3 + + - name: JDK 17 구성 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'corretto' + cache: 'gradle' + + - name: Gradlew Wrapper 실행 권한 부여 + run: chmod +x gradlew + + - name: Gradle 캐싱 + 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: Gradle 빌드 + run: ./gradlew clean build + + - name: 테스트 결과 출력 + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + files: | + ./build/test-results/**/*.xml