forked from sysprog21/lkmpg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Enforce status checks once pull requests received
We have to reject the pull request if the coding style checks and static analysis of the CI pipeline has failed. Related article: https://www.wesleyhaakman.org/working-with-pull-requests-status-checks-arm-templates-and-github-actions/
- Loading branch information
Showing
2 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: build-deploy-assets | ||
|
||
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 |