Skip to content

Commit 2834609

Browse files
committed
Isolated codestyle test
(cherry picked from commit 8190ef5)
1 parent 55832d0 commit 2834609

File tree

3 files changed

+62
-2
lines changed

3 files changed

+62
-2
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#-------------------------------------------------------------
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
#-------------------------------------------------------------
21+
22+
name: Java Codestyle
23+
24+
on:
25+
push:
26+
paths-ignore:
27+
- 'docs/**'
28+
- '*.md'
29+
- '*.html'
30+
- 'src/main/python/**'
31+
- 'dev/**'
32+
branches:
33+
- main
34+
pull_request:
35+
paths-ignore:
36+
- 'docs/**'
37+
- '*.md'
38+
- '*.html'
39+
- 'src/main/python/**'
40+
- 'dev/**'
41+
branches:
42+
- main
43+
44+
jobs:
45+
java_codestyle:
46+
name: Java Checkstyle
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Checkout Repository
50+
uses: actions/checkout@v6
51+
52+
- name: Setup Java 17 adopt
53+
uses: actions/setup-java@v5
54+
with:
55+
distribution: adopt
56+
java-version: '17'
57+
cache: 'maven'
58+
59+
- name: Run Checkstyle
60+
run: mvn -ntp -B -Dcheckstyle.skip=false checkstyle:check

.github/workflows/javaTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
uses: ./.github/action/
9797
id: test
9898
with:
99-
test-to-run: ${{ matrix.tests }} -Dcheckstyle.skip=true
99+
test-to-run: ${{ matrix.tests }}
100100

101101
- name: Clean Github Artifact Name of Asterisks
102102
run: |

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<test-forkCount>1C</test-forkCount>
7979
<rerun.failing.tests.count>2</rerun.failing.tests.count>
8080
<jacoco.skip>false</jacoco.skip>
81-
<checkstyle.skip>false</checkstyle.skip>
81+
<checkstyle.skip>true</checkstyle.skip>
8282
<doc.skip>false</doc.skip>
8383
<jacoco.include>**</jacoco.include>
8484
<automatedtestbase.outputbuffering>false</automatedtestbase.outputbuffering>

0 commit comments

Comments
 (0)