diff --git a/.github/workflows/develop-pull-request-on-check.yml b/.github/workflows/develop-pull-request-on-check.yml new file mode 100644 index 00000000..dba55dc6 --- /dev/null +++ b/.github/workflows/develop-pull-request-on-check.yml @@ -0,0 +1,39 @@ +name: Pull Request on Check +on: + pull_request: + branches: + - develop +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + java-version: [ 17 ] + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Java + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java-version }} + distribution: 'zulu' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + with: + arguments: check + cache-read-only: false + ## slack 알람 + - name: Slack Alarm + uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + author_name: GitHub-Actions CI/CD + fields: repo,message,commit,author,ref,job,took + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required + if: always() # Pick up events even if the job fails or is canceled.