Skip to content

Commit 30c75d0

Browse files
authored
Create lint-backend.yml
1 parent 6329628 commit 30c75d0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/lint-backend.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint Java Backend
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint-java:
7+
runs-on: ubuntu-latest
8+
name: Checkstyle Java Linting
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up JDK
13+
uses: actions/setup-java@v4
14+
with:
15+
distribution: 'temurin'
16+
java-version: '17'
17+
18+
- name: Download Checkstyle
19+
run: curl -L -o checkstyle.jar https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.1/checkstyle-10.12.1-all.jar
20+
21+
- name: Run Checkstyle
22+
run: |
23+
java -jar checkstyle.jar -c /google_checks.xml app/src/main/java/com/project/back_end || true

0 commit comments

Comments
 (0)