Skip to content

Commit

Permalink
chore: fix ci reuse script
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsu4755 committed Aug 30, 2023
1 parent 9a8c0ec commit 13e9f99
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/gradle-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,33 @@ jobs:
needs: common
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true

- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

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

- name: Load GitHub submodule
run: ./gradlew copyConfig

- name: Run Gradle Task
run: ./gradle ${{matrix.gradle.task}}
12 changes: 3 additions & 9 deletions .github/workflows/pr_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ permissions:
pull-requests: write

jobs:
checkstyle:
runs-on: ubuntu-latest
CheckStyle:
strategy:
matrix:
checkstyle: [ checkstyleMain, checkstyleTest ]
steps:
- name: load Common
uses: ./.github/workflows/common.yml

- name: checkstyle
run: ./gradlew ${{matrix.checkstyle}}
gradle: [checkstyleMain, checkstyleTest]
uses: ./.github/workflows/gradle-task.yml

# checkstyle:
# needs: common
Expand Down

0 comments on commit 13e9f99

Please sign in to comment.