Woodpecker CI: Add lint workflow
This commit is contained in:
parent
6bd929be9c
commit
5213a827b6
1 changed files with 31 additions and 0 deletions
31
.woodpecker/lint.yaml
Normal file
31
.woodpecker/lint.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
when:
|
||||
- event: pull_request
|
||||
- event: push
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
- event: manual
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
steps:
|
||||
install-depends:
|
||||
image: &node-image
|
||||
docker.io/node:18-alpine
|
||||
commands:
|
||||
- yarn
|
||||
|
||||
eslint:
|
||||
image: *node-image
|
||||
depends_on: install-depends
|
||||
commands:
|
||||
- yarn ci-eslint
|
||||
|
||||
biome:
|
||||
image: *node-image
|
||||
depends_on: install-depends
|
||||
commands:
|
||||
- yarn ci-biome
|
||||
|
||||
stylelint:
|
||||
image: *node-image
|
||||
depends_on: install-depends
|
||||
commands:
|
||||
- yarn ci-stylelint
|
||||
Loading…
Add table
Add a link
Reference in a new issue