From 36edc27c9eb3949e55d4f4e9c01fc75baeee7f55 Mon Sep 17 00:00:00 2001 From: hicka04 Date: Sun, 6 Oct 2024 00:15:54 +0900 Subject: [PATCH] Change to test runs parallel on ci --- .github/workflows/ci.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e393a6b..42e441e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,22 +2,26 @@ on: pull_request jobs: - build: - + test: + strategy: + matrix: + module: + - :core:data + - :core:domain + - :core:network runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: set up JDK - uses: actions/setup-java@v4 - with: - java-version: 17 - distribution: 'temurin' - cache: gradle + - name: set up JDK + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: 'temurin' + cache: gradle - - name: Grant execute permission for gradlew - run: chmod +x gradlew + - name: Grant execute permission for gradlew + run: chmod +x gradlew - - name: Build - run: ./gradlew build + - name: Test + run: ./gradlew ${{ matrix.module }}:test