From 8aad9d6c05265c08126b43ee7196f96f84df88e3 Mon Sep 17 00:00:00 2001 From: Mick Semb Wever Date: Sat, 20 Sep 2025 15:39:23 +0200 Subject: [PATCH] Add a github action that runs .build/docker/check-code.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Runs on each supported JDK patch by Mick Semb Wever; reviewed by Štefan Miklošovič for CASSANDRA-20931 --- .build/build-rat.xml | 1 + .github/workflows/code-check.yaml | 35 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/code-check.yaml diff --git a/.build/build-rat.xml b/.build/build-rat.xml index 2f6f5c7156..7219e0cf8a 100644 --- a/.build/build-rat.xml +++ b/.build/build-rat.xml @@ -72,6 +72,7 @@ + diff --git a/.github/workflows/code-check.yaml b/.github/workflows/code-check.yaml new file mode 100644 index 0000000000..f94f3f9074 --- /dev/null +++ b/.github/workflows/code-check.yaml @@ -0,0 +1,35 @@ +name: Ant Check + +on: + push: + branches: + - '**' + +jobs: + ant-check-jdk11: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Run Code Checks + run: .build/docker/check-code.sh 11 + + ant-check-jdk17: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Run Code Checks + run: .build/docker/check-code.sh 17 \ No newline at end of file