Skip to content

Commit

Permalink
Add CI step for license header check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Jan 4, 2025
1 parent 29cddfb commit ad4d64e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- name: Validate Java code style
run: ./gradlew spotlessJavaCheck || (echo "::error::Java code style validation failed! To fix, run 'Clean Up' and then 'Format' in Eclipse, or './gradlew spotlessApply' in the terminal." && exit 1)

- name: Validate license headers
run: ./gradlew licenseHeaderCheck || (echo "::error::License headers are missing or malformed in some files! Run './gradlew spotlessApply' to fix this, or check the full error message for details." && exit 1)

- name: Run unit tests
run: ./gradlew test --stacktrace --warning-mode=fail

Expand Down

0 comments on commit ad4d64e

Please sign in to comment.