forked from grate-driver/linux
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Heidelberg <[email protected]>
- Loading branch information
Showing
2 changed files
with
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
name: Quality assurance | ||
on: [pull_request] | ||
jobs: | ||
checkpatch: | ||
name: checkpatch review | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 150 | ||
- name: Run checkpatch review | ||
uses: webispy/checkpatch-action@master | ||
env: | ||
CHECKPATCH_COMMAND: checkpatch.pl --no-tree --strict | ||
|
||
yamllint: | ||
name: yamllint review | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 150 | ||
- name: Install yamllint | ||
run: | | ||
sudo apt-get -qq update > /dev/null | ||
sudo apt-get -qq install python3-pip > /dev/null | ||
pip install yamllint | ||
- id: files | ||
uses: jitterbit/get-changed-files@v1 | ||
- name: Run yamllint review | ||
run: | | ||
YAMLS="${{ steps.files.outputs.added_modified }}" | ||
RULES="{rules: {line-length: {level: warning, max: 100}}}" | ||
touch out.txt | ||
for item in ${YAMLS}; do | ||
if [[ "${item}" != **/*yaml ]]; then | ||
continue | ||
fi | ||
yamllint -d "$RULES" \ | ||
-f github ${item} | ||
yamllint -d "$RULES" \ | ||
-f standard ${item} >> out.txt | ||
done | ||
cat out.txt | ||
|
||
dt-doc-validate: | ||
name: dt-doc-validate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 150 | ||
- name: Install dt-schema | ||
run: | | ||
sudo apt-get -qq update > /dev/null | ||
sudo apt-get -qq install python3-pip > /dev/null | ||
pip install git+https://github.com/devicetree-org/dt-schema.git@master | ||
- id: files | ||
uses: jitterbit/get-changed-files@v1 | ||
- name: Run dt-doc-validate review | ||
run: | | ||
YAMLS="${{ steps.files.outputs.added_modified }}" | ||
for item in ${YAMLS}; do | ||
if [[ "${item}" != **/*yaml ]]; then | ||
continue | ||
fi | ||
# remove warning about URL | ||
dt-doc-validate "${item}" #2>&1 | grep -v \ | ||
#"\$id: relative path/filename doesn't match actual path or filename\|expected:.*yaml#" | ||
done |
This file was deleted.
Oops, something went wrong.