Skip to content

CD 구현

CD 구현 #11

name: Pull Request Open
on:
pull_request:
branches: ["dev"]
jobs:
build:
runs-on: ubuntu-22.04
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "corretto"
- name: Run tests
run: ./gradlew test
- name: Build with Gradle
run: ./gradlew build
- name: Publish Test Result
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "**/build/test-results/test/TEST-*.xml"
- name: Comment Fail Test
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: "**/build/test-results/test/TEST-*.xml"
token: ${{ github.token }}