mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-26 10:13:42 +08:00
0d5ac2a5e2
We tend to reject the pull requests if they fail to pass coding style checks and static analysis. See https://www.wesleyhaakman.org/working-with-pull-requests-status-checks-arm-templates-and-github-actions/
25 lines
529 B
YAML
25 lines
529 B
YAML
name: status-checks
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: checkout code
|
|
uses: actions/checkout@v2
|
|
- name: validate coding style and functionality
|
|
run: |
|
|
sudo apt-get install -q -y clang-format-11
|
|
sudo apt-get install -q -y cppcheck
|
|
.ci/check-format.sh
|
|
.ci/static-analysis.sh
|
|
.ci/build-n-run.sh
|
|
shell: bash
|