Skip to content

Commit

Permalink
Use CDT's container to run all code cleanliness checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham committed Jun 23, 2024
1 parent 24d9bd1 commit bd9972f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 148 deletions.
66 changes: 0 additions & 66 deletions .github/workflows/build-test.yml

This file was deleted.

55 changes: 22 additions & 33 deletions .github/workflows/code-cleanliness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,28 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-20.04

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@v3
with:
fetch-depth: 1
- name: Run Check Code Cleanliness with Docker
uses: addnab/docker-run-action@v3
with:
# image: quay.io/eclipse-cdt/cdt-infra-plus-eclipse-install@sha256:7146f40a39f75e364c473aa26044803582428f41f1f911e4b44a8ee8e72f89d1
image: ubuntu:latest
options: -v ${{ github.workspace }}:/work
run: |
ls -la /
ls -la /work
cd /work
./releng/scripts/check_code_cleanliness_only.sh
./releng/scripts/check_bundle_versions.sh
./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"
21 changes: 0 additions & 21 deletions .github/workflows/licensecheck.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/report.yml

This file was deleted.

0 comments on commit bd9972f

Please sign in to comment.