Skip to content

Commit

Permalink
refactor: action에서 모듈별 테스트 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Aug 8, 2024
1 parent e1f2e7c commit b1e3dce
Showing 1 changed file with 73 additions and 2 deletions.
75 changes: 73 additions & 2 deletions .github/workflows/validate-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,77 @@ jobs:
run: |
./gradlew jooqCodegenAll
- name: Test with Gradle
api-test:
needs: validate-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: API Test with Gradle
run: |
./gradlew test -parallel
./gradlew api:test -parallel
api-repo-test:
needs: validate-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: API Repo Test with Gradle
run: |
./gradlew api-repo:test -parallel
batch-test:
needs: validate-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Batch Test with Gradle
run: |
./gradlew batch:test -parallel

0 comments on commit b1e3dce

Please sign in to comment.