-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI saves lives Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
- Loading branch information
1 parent
4586095
commit fc76c97
Showing
2 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Tools that can save round-trips to github and a lot of time: | ||
# | ||
# yamllint -f parsable this.yml | ||
# pip3 install ruamel.yaml.cmd | ||
# yaml merge-expand this.yml exp.yml && diff -w -u this.yml exp.yml | ||
# | ||
# github.com also has a powerful web editor that can be used without | ||
# committing. | ||
|
||
name: cppcheck | ||
|
||
# yamllint disable-line rule:truthy | ||
on: [pull_request, push] | ||
|
||
jobs: | ||
cppcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# From time to time this will catch a git tag and change SOF_VERSION | ||
with: {fetch-depth: 50, submodules: recursive} | ||
|
||
- name: apt install cppcheck | ||
run: sudo apt-get -y install cppcheck | ||
|
||
# TODO enable more types of checks as they become available | ||
- name: run cppcheck | ||
run: cppcheck --platform=unix32 --force --max-configs=1024 --inconclusive --quiet --inline-suppr . |
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,29 @@ | ||
--- | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Tools that can save round-trips to github and a lot of time: | ||
# | ||
# yamllint -f parsable this.yml | ||
# pip3 install ruamel.yaml.cmd | ||
# yaml merge-expand this.yml exp.yml && diff -w -u this.yml exp.yml | ||
# | ||
# github.com also has a powerful web editor that can be used without | ||
# committing. | ||
|
||
name: checkpatch | ||
|
||
# yamllint disable-line rule:truthy | ||
on: [pull_request] | ||
|
||
jobs: | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# From time to time this will catch a git tag and change SOF_VERSION | ||
with: {fetch-depth: 50, submodules: recursive} | ||
|
||
- name: apt install yamllint | ||
run: sudo apt-get -y install yamllint | ||
|
||
- name: run yamllint | ||
run: yamllint .github/workflows/*.yml |