CI Cleaning release.yml #28
This file contains hidden or 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: Lint and Format | |
| on: | |
| push: | |
| branches: [ develop ] | |
| pull_request: | |
| branches: [ develop ] | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| name: Code Quality Check | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y meson ninja-build pkg-config clang clang-tidy clang-format just | |
| - name: Configure project | |
| run: meson setup .build | |
| - name: Check code formatting | |
| run: | | |
| just format | |
| if [ -n "$(git diff --name-only)" ]; then | |
| echo "Code is not properly formatted. Please run 'just format' locally." | |
| git diff | |
| exit 1 | |
| fi | |
| - name: Run static analysis | |
| run: just lint |