Skip to content

Commit 8aad9d6

Browse files
Add a github action that runs .build/docker/check-code.sh
Runs on each supported JDK patch by Mick Semb Wever; reviewed by Štefan Miklošovič for CASSANDRA-20931
1 parent ed04f46 commit 8aad9d6

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.build/build-rat.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<exclude name="test/data/jmxdump/cassandra-*-jmx.yaml"/>
7373
<!-- Documentation files -->
7474
<exclude name=".github/pull_request_template.md"/>
75+
<exclude name=".github/workflows/code-check.yaml"/>
7576
<exclude NAME="doc/modules/**/*"/>
7677
<exclude NAME="src/java/**/*.md"/>
7778
<exclude NAME="**/README*"/>

.github/workflows/code-check.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Ant Check
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
ant-check-jdk11:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
- name: JDK 11
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '11'
19+
distribution: 'temurin'
20+
- name: Run Code Checks
21+
run: .build/docker/check-code.sh 11
22+
23+
ant-check-jdk17:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v3
29+
- name: JDK 17
30+
uses: actions/setup-java@v3
31+
with:
32+
java-version: '17'
33+
distribution: 'temurin'
34+
- name: Run Code Checks
35+
run: .build/docker/check-code.sh 17

0 commit comments

Comments
 (0)