Skip to content

Commit

Permalink
workflow 수정 #84
Browse files Browse the repository at this point in the history
- service 테스트 추가
  • Loading branch information
chaewss committed Aug 19, 2023
1 parent 1fc81c9 commit 726b7a9
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: cvsgo-server-group

jobs:
build:
test_and_build:
runs-on: ubuntu-latest

steps:
Expand All @@ -29,17 +29,24 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Controller Test with Gradle
run: ./gradlew test --tests "com.cvsgo.controller.*"


- name: Controller and Service Tests with Gradle
run: |
./gradlew test --tests "com.cvsgo.controller.*"
./gradlew test --tests "com.cvsgo.service.*"
- name: Build with Gradle
run: ./gradlew build -x test

- name: Make zip file
run: zip -qq -r ./$GITHUB_SHA.zip .
shell: bash


deploy:
runs-on: ubuntu-latest
needs: test_and_build

steps:
- name: AWS Configure credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -56,4 +63,3 @@ jobs:
--deployment-group-name ${{ env.CODE_DEPLOY_DEPLOYMENT_GROUP_NAME }}
--deployment-config-name CodeDeployDefault.AllAtOnce
--s3-location bucket=$S3_BUCKET_NAME,key=$PROJECT_NAME/$GITHUB_SHA.zip,bundleType=zip

0 comments on commit 726b7a9

Please sign in to comment.