From 6906fab720a40c89f1fc2b306b9dff18460a7d4d Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Sun, 23 Jun 2024 14:40:16 -0400 Subject: [PATCH] Use CDT's container to run all code cleanliness checks --- .github/workflows/code-cleanliness.yml | 49 +++++++++----------------- 1 file changed, 16 insertions(+), 33 deletions(-) diff --git a/.github/workflows/code-cleanliness.yml b/.github/workflows/code-cleanliness.yml index 65ce28e47fa..a1ce7464d68 100644 --- a/.github/workflows/code-cleanliness.yml +++ b/.github/workflows/code-cleanliness.yml @@ -4,39 +4,22 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 + container: quay.io/eclipse-cdt/cdt-infra-plus-eclipse-install@sha256:7146f40a39f75e364c473aa26044803582428f41f1f911e4b44a8ee8e72f89d1 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up JDK 21 - uses: actions/setup-java@v3 - with: - java-version: '21' - distribution: 'temurin' - cache: maven - - name: Set up Maven - uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5 - with: - maven-version: 3.9.2 - - name: Install dependencies - run: | - sudo apt-get update && sudo apt-get install -y --no-install-recommends \ - libxml2-utils - - name: Install Eclipse SDK - run: | - curl -sL https://download.eclipse.org/eclipse/downloads/drops4/R-4.23-202203080310/eclipse-SDK-4.23-linux-gtk-x86_64.tar.gz | tar xz - - name: Run Check Code Cleanliness - run: ECLIPSE=$PWD/eclipse/eclipse ./releng/scripts/check_code_cleanliness_only.sh - - name: Run Bundle Versions Bumped - run: ./releng/scripts/check_bundle_versions.sh - - name: Report on Bundle Versions Bumped - run: ./releng/scripts/check_bundle_versions_report.sh - - name: Upload Logs - uses: actions/upload-artifact@v3 - if: success() || failure() - with: - name: Code Cleanliness Detailed Logs - path: '*.log' + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run Check Code Cleanliness + run: ./releng/scripts/check_code_cleanliness_only.sh + - name: Run Bundle Versions Bumped + run: ./releng/scripts/check_bundle_versions.sh + - name: Report on Bundle Versions Bumped + run: ./releng/scripts/check_bundle_versions_report.sh + - name: Upload Logs + uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: Code Cleanliness Detailed Logs + path: "*.log"