forked from aws/aws-durable-execution-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 886 Bytes
/
Copy pathcheck-spotless.yml
File metadata and controls
40 lines (35 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Check for code formatting and license header errors using Spotless
#
# Description:
# Runs Spotless check for pull requests to ensure code formatting consistency,
# proper import ordering, and license headers.
# Fails the build if any violations are found.
#
# Triggers:
# - pull_request
name: Spotless
on:
pull_request:
branches:
- main
paths:
- 'sdk/**'
- 'sdk-testing/**'
- 'sdk-integration-tests/**'
- 'examples/**'
permissions:
contents: read
jobs:
spotless-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'corretto'
cache: maven
- name: Run Spotless check
run: mvn -B -q spotless:check --file pom.xml