actions: consolidate yamlint

Lets not trust that everyone remembers to lint themselves or that they
fetch the repo in order to execute their job.

Also rename workflow file to be a bit more generic

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-05-03 15:34:37 -07:00 committed by Liam Girdwood
parent e11c3c9e51
commit 0a1029c2a2
4 changed files with 8 additions and 23 deletions

View File

@ -9,7 +9,7 @@
# github.com also has a powerful web editor that can be used without
# committing.
name: checkpatch
name: codestyle
# yamllint disable-line rule:truthy
on: [pull_request]
@ -31,9 +31,6 @@ jobs:
- uses: actions/checkout@v2
with: {fetch-depth: 2}
- name: yamllint ourselves
run: yamllint .github/workflows/shallow_checkpatch.yml
- name: install codespell
run: sudo apt-get -y install codespell && dpkg -L codespell | grep dict
@ -51,3 +48,10 @@ jobs:
- name: checkpatch --strict
run: .github/workflows/checkpatch_list.sh ${CHK_CMD_OPTS}
--strict < PR_SHAs.txt
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: run yamllint
run: yamllint --strict .github/workflows/*.yml

View File

@ -23,9 +23,6 @@ jobs:
# From time to time this will catch a git tag and change SOF_VERSION
with: {fetch-depth: 50, submodules: recursive}
- name: yamllint ourselves
run: yamllint .github/workflows/installer.yml
- name: docker
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof

View File

@ -139,16 +139,3 @@ jobs:
PLATFORM: ${{ matrix.platform }}
run: ./scripts/docker-qemu.sh
../sof.git/scripts/qemu-check.sh ${PLATFORM}
yamllint-gh:
name: yamllint /.github/workflows/
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: apt install yamllint
run: sudo apt-get -y install yamllint
- name: yamllint github actions
run: yamllint .github/workflows/pull-request.yml

View File

@ -15,9 +15,6 @@ jobs:
# From time to time this will catch a git tag and change SOF_VERSION
with: {fetch-depth: 10, submodules: recursive}
- name: yamllint ourselves
run: yamllint .github/workflows/zephyr.yml
- name: build
run: docker run -v "$(pwd)":/workdir
docker.io/zephyrprojectrtos/zephyr-build:v0.17.3