2021-09-23 20:01:13 +08:00
|
|
|
name: status-checks
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
validate:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: checkout code
|
2022-12-10 06:11:09 +08:00
|
|
|
uses: actions/checkout@v3.1.0
|
2021-09-23 20:01:13 +08:00
|
|
|
- name: validate coding style and functionality
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -q -y clang-format-11
|
|
|
|
sudo apt-get install -q -y cppcheck
|
2021-10-05 10:38:40 +08:00
|
|
|
sudo apt-get install -q -y gcc-10
|
2021-09-23 20:01:13 +08:00
|
|
|
.ci/check-format.sh
|
|
|
|
.ci/static-analysis.sh
|
|
|
|
.ci/build-n-run.sh
|
|
|
|
shell: bash
|