Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Run step 추가 #72

Merged
merged 24 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: pothole CD

on:
pull_request_target:
types:
- closed
branches:
- 'develop'
types: [closed]
branches: ["develop"]

jobs:
build:
Expand Down
51 changes: 42 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: pothole Build & Test
name: pothole Build & Test & Run

on:
pull_request:
branches: [ "develop" ]
branches: [ develop ]

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

steps:
- name: GitHub Repository Checkout
Expand All @@ -18,23 +18,56 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: core application.yml 생성
shell: bash
run: |
mkdir -p ./pothole-core/src/main/resources
cd ./pothole-core/src/main/resources

touch ./application-core-dev.yml
echo "${{ secrets.CORE_APPLICATION_DEV_YML }}" > ./application-core-dev.yml

- name: Manager application.yml 생성
shell: bash
run: |
mkdir -p ./pothole-manager-api/src/main/resources
cd ./pothole-manager-api/src/main/resources

touch ./application.yml
echo "${{ secrets.MANAGER_APPLICATION_YML }}" > ./application.yml

touch ./application-manager-dev.yml
echo "${{ secrets.MANAGER_APPLICATION_DEV_YML }}" > ./application-manager-dev.yml

- name: Worker application.yml 생성
shell: bash
run: |
mkdir -p ./pothole-worker-api/src/main/resources
cd ./pothole-worker-api/src/main/resources

touch ./application.yml
echo "${{ secrets.WORKER_APPLICATION_YML }}" > ./application.yml

touch ./application-worker-dev.yml
echo "${{ secrets.WORKER_APPLICATION_DEV_YML }}" > ./application-worker-dev.yml

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Pothole [Core] Module Build with Gradle
run: ./gradlew clean pothole-core:bootJar -x test
run: ./gradlew pothole-core:bootJar -x test

- name: Pothole [Core] Module test
run: ./gradlew clean pothole-core:test
run: ./gradlew pothole-core:test

- name: Pothole [Manager] Module Build with Gradle
run: ./gradlew clean pothole-manager-api:bootJar -x test
run: ./gradlew pothole-manager-api:bootJar -x test

- name: Pothole [Manager] Module test
run: ./gradlew clean pothole-manager-api:test
run: ./gradlew pothole-manager-api:test

- name: Pothole [Worker] Module Build with Gradle
run: ./gradlew clean pothole-worker-api:bootJar -x test
run: ./gradlew pothole-worker-api:bootJar -x test

- name: Pothole [Worker] Module test
run: ./gradlew clean pothole-worker-api:test
run: ./gradlew pothole-worker-api:test
4 changes: 2 additions & 2 deletions .github/workflows/build-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
touch ./application.yml
echo "${{ secrets.MANAGER_APPLICATION_YML }}" > ./application.yml

touch ./application-aws.yml
touch ./application-manager-dev.yml
echo "${{ secrets.MANAGER_APPLICATION_DEV_YML }}" > ./application-manager-dev.yml

- name: Worker application.yml 생성
Expand All @@ -62,7 +62,7 @@ jobs:
touch ./application.yml
echo "${{ secrets.WORKER_APPLICATION_YML }}" > ./application.yml

touch ./application-aws.yml
touch ./application-worker-dev.yml
echo "${{ secrets.WORKER_APPLICATION_DEV_YML }}" > ./application-worker-dev.yml

- name: pothole all build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/reusable-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ on:
ECR_REGISTRY:
required: true


permissions:
contents: read

Expand Down
Loading