mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
ci: rename lint jobs and update task names in workflow
This commit is contained in:
parent
97fb0a3d89
commit
ced89320fc
12
.github/workflows/linting.yaml
vendored
12
.github/workflows/linting.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Lint
|
||||
name: lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
|
@ -11,7 +11,7 @@ on:
|
|||
|
||||
jobs:
|
||||
mdlint:
|
||||
name: Markdown Lint
|
||||
name: markdown
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
|
@ -40,13 +40,13 @@ jobs:
|
|||
-- *.md **/*.md
|
||||
|
||||
zshlint:
|
||||
name: ZSH Lint
|
||||
name: zsh
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
task: [zsh-noexec, zsh-zcompile]
|
||||
task: [noexec, zcompile]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
|
@ -63,11 +63,11 @@ jobs:
|
|||
- name: "run lint (${{ matrix.task }})"
|
||||
run: |
|
||||
case "${{ matrix.task }}" in
|
||||
zsh-noexec)
|
||||
noexec)
|
||||
find . -name '*.zsh' -type f -print0 \
|
||||
| xargs -0 -n1 -P4 zsh -n
|
||||
;;
|
||||
zsh-zcompile)
|
||||
zcompile)
|
||||
find . -name '*.zsh' -type f \
|
||||
-exec zsh -fc "zcompile {}" \;
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue