Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liurenjie1024 committed Nov 20, 2024
1 parent d5da9a4 commit 6daafe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up JDK
uses: actions/[email protected]
with:
java-version: '8'
distribution: 'adopt'

- name: Checkout base branch
run: git checkout ${{ github.base_ref }}

- name: Run checkstyle
run: bash ./dev/checkstyle.sh

2 changes: 1 addition & 1 deletion dev/checkstyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
set -ex

# Assuming you are in the root of your git repository
MODIFIED_FILES=$(git diff --name-only HEAD~1)
MODIFIED_FILES=$(git diff --name-only "${GITHUB_BASE_REF}")

SRC_DIR="src/main/java/"
TEST_SRC_DIR="src/test/java/"
Expand Down

0 comments on commit 6daafe5

Please sign in to comment.