refactor: GitHub Actions 워크플로우 최적화 완료 #8
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: Test Spring Boot with Gradle | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Java and Gradlew | |
uses: ./.github/actions/setup-java-and-gradlew | |
with: | |
java-distribution: 'liberica' | |
java-version: '21' | |
java-package: 'jdk' | |
- name: Run tests with Gradle | |
run: ./gradlew test -Dspring.profiles.active=test --info --parallel | |
- name: Upload test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results | |
path: '**/build/reports/tests/test/*' |