Skip to content

Commit

Permalink
chore: refactor ci and cd (#406)
Browse files Browse the repository at this point in the history
* chore: delete cd

* chore: migrate ci for cloud to develop
  • Loading branch information
pingoo33 authored Nov 19, 2023
1 parent e2494c9 commit 6e8c47a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 91 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/cd.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/ci-cloud.yml

This file was deleted.

22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
module-name: [ auth, user, center, post ]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# docker container start
- name: Start docker containers
run: docker-compose -f "docker-compose.yml" up -d --build
- name: CheckOut
uses: actions/checkout@v3
with:
submodules: true

- name: Set up JDK 17
uses: actions/setup-java@v2
Expand All @@ -40,7 +42,13 @@ jobs:
run: chmod +x gradlew

- name: Gradle build
run: ./gradlew build --exclude-task test
uses: gradle/gradle-build-action@v2
with:
arguments: clean ${{matrix.module-name}}:build
cache-read-only: false

- name: Test with Gradle
run: ./gradlew test
uses: gradle/gradle-build-action@v2
with:
arguments: clean test
cache-read-only: false

0 comments on commit 6e8c47a

Please sign in to comment.