Files
coursera-ibm-java-developer…/.gitea/workflows/smart-clinic-lint-backend.yml

28 lines
874 B
YAML

name: Lint Java Backend
on:
pull_request:
paths:
- SmartClinicManagementSystem/**
push:
paths:
- SmartClinicManagementSystem/**
jobs:
lint-java:
runs-on: node20
name: Checkstyle Java Linting
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
- name: Configure Java project
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Download Checkstyle
run: curl -L -o checkstyle.jar https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.1/checkstyle-10.12.1-all.jar
- name: Run Checkstyle
run: |
java -jar checkstyle.jar -c /google_checks.xml app/src/main/java/com/project/back_end || true