Skip to content

Update coding_convention.yaml #12

Update coding_convention.yaml

Update coding_convention.yaml #12

name: Coding Convention
on:
push:
branches:
- '**'
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
REPO_LINK: ${{ github.repository }}
jobs:
job1:
name: Check coding convention
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: update-source-code-lib-iec60730
- name: Copy coding convention tool
run: |
git clone $REPO_LINK
cp -r /home/runner/work/IEC60730_Libs/IEC60730_Libs/IEC60730_Libs/tools .
cd ..
pwd
ls -la
- 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: |
pre-commit run --all-files