GeezerVison is showing github.com — add workflow to check code style and modify violationSeverity · ArcYu/Java-WebSocket@9f2e3f4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +# This workflow will build a Java project with Maven |
| 2 | +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven |
| 3 | + |
| 4 | +name: Java Code Style Check with Maven |
| 5 | + |
| 6 | +on: [push] |
| 7 | + |
| 8 | +jobs: |
| 9 | + build: |
| 10 | + |
| 11 | + runs-on: ubuntu-latest |
| 12 | + |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v2 |
| 15 | + - name: Set up JDK 1.8 |
| 16 | + uses: actions/setup-java@v1 |
| 17 | + with: |
| 18 | + java-version: 1.8 |
| 19 | + - name: Code Style Check |
| 20 | + run: mvn -B validate --file pom.xml |
Collapse file
Copy file name to clipboardExpand all lines: pom.xml +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
181 | 181 | <version>${maven.checkstyle.plugin.version}</version> |
182 | 182 | <configuration> |
183 | 183 | <configLocation>google_checks.xml</configLocation> |
| 184 | + <violationSeverity>warning</violationSeverity> |
184 | 185 | <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation> |
185 | 186 | <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression> |
186 | 187 | <consoleOutput>true</consoleOutput> |
187 | | - <failsOnError>true</failsOnError> |
| 188 | + <failsOnError>false</failsOnError> |
188 | 189 | </configuration> |
189 | 190 | <executions> |
190 | 191 | <execution> |
|