Use CDT's container to run all code cleanliness checks #323
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: 0 | |
- name: Run Check Code Cleanliness with Docker | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: quay.io/eclipse-cdt/cdt-infra-plus-eclipse-install-github@sha256:448dd492ab17c81b114c6adb5dc431a54b63991bf21265f7b7af93aea3704f87 | |
options: -v ${{ github.workspace }}:/work # --user 1001:127 | |
run: | | |
set -x | |
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" |