Skip to content

Commit

Permalink
refactor(CI): CI 성능 개선 및 결과 저장
Browse files Browse the repository at this point in the history
  • Loading branch information
limehee committed Oct 26, 2024
1 parent 4d07034 commit f2f2024
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/spring-boot-gradle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Set up Gradle Cache
uses: actions/cache@v3
with:
path: ~/.gradle/caches/modules-2/files-2.1
key: gradle-${{ runner.os }}-build-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-build
gradle-${{ runner.os }}
- name: Create application-test.yml from secret for stempo-common
env:
COMMON_TEST_YML: ${{ secrets.COMMON_TEST_YML }}
Expand Down Expand Up @@ -49,7 +58,14 @@ jobs:
echo $AUTH_TEST_YML | base64 --decode > $AUTH_TEST_DIR/$AUTH_DIR_FILE_NAME
- name: Run tests with Gradle
run: ./gradlew test -Dspring.profiles.active=test --info
run: ./gradlew test -Dspring.profiles.active=test --info --parallel

- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '**/build/test-results/test'

build:
runs-on: ubuntu-latest
Expand All @@ -70,7 +86,7 @@ jobs:
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew assemble --info
run: ./gradlew assemble --info --parallel

- name: Check build status
run: |
Expand Down

0 comments on commit f2f2024

Please sign in to comment.