Update coding_convention.yaml #30
Workflow file for this run
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: Coding Convention | |
on: | |
push: | |
branches: | |
- '**' | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
REPO_LINK: https://github.com/${{ github.repository }}.git | |
jobs: | |
job1: | |
name: Check coding convention | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Check working directory | |
run: | | |
pwd | |
ls -la | |
- name: Set up environment | |
run: | | |
pip install pre-commit | |
sudo apt install uncrustify clang-tidy cppcheck | |
- name: Run test | |
run: | | |
touch CodingConventionResult.log | |
git fetch origin | |
git diff --name-only origin/iec-efr32 origin/update-source-code-lib-iec60730 | xargs pre-commit run --files >> CodingConventionResult.log | |
- name: Upload Result | |
uses: actions/[email protected] | |
with: | |
name: CodingConventionResult.log | |
path: . | |
warn: Output a warning but do not fail the action | |
retention-days: 90 |