Skip to content

Commit 0d5ac2a

Browse files
authored
CI: Enforce status checks once pull requests received (#113)
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/
1 parent 1a6fb67 commit 0d5ac2a

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

.github/workflows/generate_doc.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,3 @@ jobs:
3535
lkmpg-html.tar.gz
3636
tag_name: "latest"
3737
prerelease: true
38-
39-
validate:
40-
runs-on: ubuntu-20.04
41-
steps:
42-
- name: checkout code
43-
uses: actions/checkout@v2
44-
- name: validate coding style and functionality
45-
run: |
46-
sudo apt-get install -q -y clang-format-11
47-
sudo apt-get install -q -y cppcheck
48-
.ci/check-format.sh
49-
.ci/static-analysis.sh
50-
.ci/build-n-run.sh
51-
shell: bash

.github/workflows/status-check.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: status-checks
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- name: checkout code
16+
uses: actions/checkout@v2
17+
- name: validate coding style and functionality
18+
run: |
19+
sudo apt-get install -q -y clang-format-11
20+
sudo apt-get install -q -y cppcheck
21+
.ci/check-format.sh
22+
.ci/static-analysis.sh
23+
.ci/build-n-run.sh
24+
shell: bash

0 commit comments

Comments
 (0)