Skip to content

14 optimize pipeline #22

14 optimize pipeline

14 optimize pipeline #22

Workflow file for this run

name: Check code quality
on:
pull_request:
branches: main
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install clang-format
- run: pip install cmakelang
- run: clang-format --dry-run $(git ls-files | grep -E "\.(hpp|cpp)$")
- run: cmake-format --check $(git ls-files | grep -E "(CMakeLists.txt|\.cmake)$")
check:
runs-on: ubuntu-latest
steps:
- run: cmake -B build
- run: cmake --build build -t check
configure-chip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install iwyu gcc-arm-none-eabi clang-tidy
- run: cmake -B build -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain.cmake
iwyu:
needs: configure-chip

Check failure on line 28 in .github/workflows/code-quality.yml

View workflow run for this annotation

GitHub Actions / Check code quality

Invalid workflow file

The workflow is not valid. .github/workflows/code-quality.yml (Line: 28, Col: 5): Required property is missing: runs-on .github/workflows/code-quality.yml (Line: 34, Col: 5): Required property is missing: runs-on
steps:
- run: wget https://raw.githubusercontent.com/include-what-you-use/include-what-you-use/clang_15/iwyu_tool.py
- run: chmod +x iwyu_tool.py
- run: "! ./iwyu_tool.py -p build/compile_commands.json | grep should"
clang-tidy:
needs: configure-chip
steps:
- run: git ls-files | grep -E "\.cpp$" | xargs clang-tidy -p build
build:
needs: configure-chip
steps:
- run: cmake --build build -t app
build-test-chip:
needs: configure-chip
steps:
- run: cmake --build build -t check