CD 구현 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |