Skip to content

Commit

Permalink
CI: Enforce status checks once pull requests received (sysprog21#113)
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
linD026 authored Sep 23, 2021
1 parent 1a6fb67 commit 0d5ac2a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/generate_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,3 @@ jobs:
lkmpg-html.tar.gz
tag_name: "latest"
prerelease: true

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
24 changes: 24 additions & 0 deletions .github/workflows/status-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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

0 comments on commit 0d5ac2a

Please sign in to comment.