Skip to content

docs: Update changelog.json file for v3.5.00 #78

docs: Update changelog.json file for v3.5.00

docs: Update changelog.json file for v3.5.00 #78

Workflow file for this run

name: compliance
on:
pull_request:
push:
branches:
- develop
jobs:
compliance-job:
runs-on: ubuntu-latest
steps:
- name: Checkout the code for push event
if: github.event_name == 'push'
uses: actions/checkout@v2
- name: Checkout the code for pull_request event
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: cache-pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-doc-pip
- name: Install packages
run: |
sudo apt-get install -y uncrustify
- name: Install python dependencies
run: |
pip3 install setuptools
pip3 install junitparser==1.6.3 gitpython
- name: Execute compliance tests
continue-on-error: true
id: compliance
run: |
if [ ${{ github.event_name }} = "push" ]; then
BASE_REF=${{ github.ref }}
else
BASE_REF=${{ github.base_ref }}
fi
echo "COMMIT_RANGE: ${BASE_REF##*/}"
./tools/ci/check-compliance.py -c origin/${BASE_REF##*/}.. -t Uncrustify -t Identity
- name: Upload results
uses: actions/upload-artifact@master
with:
name: compliance.xml
path: compliance.xml
- name: Check analysis result
run: |
if [[ ! -s "compliance.xml" ]]; then
exit 1;
fi
for file in Uncrustify.txt Identity.txt; do
if [[ -s $file ]]; then
errors=$(cat $file)
errors="${errors//'%'/'%25'}"
errors="${errors//$'\n'/'%0A'}"
errors="${errors//$'\r'/'%0D'}"
echo "::error file=${file}::$errors"
exit=1
fi
done
if [ $exit == 1 ]; then
exit 1;
fi