Skip to content

Commit

Permalink
chore: github action 테스트 전략 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
DWL21 committed Feb 14, 2025
1 parent 2a20bda commit 03af72c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/dev-ci.yml → .github/workflows/dev-pr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Dev - Build
name: Dev - Test

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

Expand All @@ -28,8 +26,7 @@ jobs:
run: chmod +x gradlew

- name: Clean Build with Gradle(with Tests)

run: |
echo ${{ secrets.APPLICATION_DEV_YML }} | base64 --decode > ./src/main/resources/application-dev.yml
echo ${{ secrets.APPLICATION_YML_DEV_MODE }} | base64 --decode > ./src/main/resources/application.yml
./gradlew clean build
./gradlew clean test
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Clean Build with Gradle (without Test)
- name: Clean Build with Gradle (without Testing)
run: |
echo ${{ secrets.APPLICATION_DEV_YML }} | base64 --decode > ./src/main/resources/application-dev.yml
./gradlew clean build -x test
./gradlew clean build
- name: Deploy to EC2
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Clean Build with Gradle (with Tests)
- name: Clean Build with Gradle (with Testing)
run: |
echo ${{ secrets.APPLICATION_PROD_YML }} | base64 --decode > ./src/main/resources/application-prod.yml
echo ${{ secrets.APPLICATION_YML_PROD_MODE }} | base64 --decode > ./src/main/resources/application.yml
./gradlew clean build
./gradlew clean test
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Clean Build with Gradle (with Tests)
- name: Clean Build with Gradle (with Testing)
run: |
echo ${{ secrets.APPLICATION_PROD_YML }} | base64 --decode > ./src/main/resources/application-prod.yml
./gradlew clean build
Expand Down

0 comments on commit 03af72c

Please sign in to comment.