Skip to content

Commit a1d0f96

Browse files
committed
Add GH workflow to check code style & license
1 parent afc1c31 commit a1d0f96

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/checkstyle.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Code style and license headers
2+
3+
on: [pull_request]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
10+
- name: Set up JDK 11
11+
uses: actions/setup-java@v2
12+
with:
13+
java-version: '11'
14+
distribution: 'adopt'
15+
16+
- name: Check style and license headers
17+
run: |
18+
./gradlew checkstyleMain checkstyleTest

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ before we can accept pull requests from you.
1313

1414
### Prerequisites
1515

16-
You need at least Java 8. The project is built with `Gradle`. You don't have to install it, and can use the provided `gradlew` that will install the required version if needed.
16+
You need at least Java 11 to build the project, even though the code targets Java 8. The project is built with `Gradle`. You don't have to install it, and can use the provided `gradlew` that will install the required version if needed.
1717

1818
Docker is used for some tests to spawn an Elasticsearch server.
1919

0 commit comments

Comments
 (0)