12345678910111213141516171819202122232425262728293031 |
- name: status-checks
- on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
- workflow_dispatch:
- jobs:
- validate:
- runs-on: ubuntu-24.04
- steps:
- - name: checkout code
- uses: actions/checkout@v4
- - name: Test changed source files
- id: changed-files
- uses: tj-actions/changed-files@v45
- with:
- files: examples/**
- - name: validate coding style and functionality
- if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
- github.event_name == 'workflow_dispatch' }}
- run: |
- sudo apt install -q -y clang-format cppcheck gcc libsqlite3-dev
- .ci/check-newline.sh
- .ci/check-format.sh
- .ci/static-analysis.sh
- .ci/build-n-run.sh
- shell: bash
|