Use CDT's container to run all code cleanliness checks #311
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Cleanliness Checks | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- 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 | |
run: | | |
ls -la / | |
cd /github/workspace | |
./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" |