mirror of https://github.com/thesofproject/sof.git
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:
parent
e11c3c9e51
commit
0a1029c2a2
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue