ci: combine lint tasks #126

Closed
norm wants to merge 1 commit from ci/combine-lints into main
4 changed files with 52 additions and 66 deletions

View file

@ -1,22 +0,0 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1 # CI does not need commit history
recursive: true
pipeline:
install:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn install
lint:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn workspace backend run lint

View file

@ -1,22 +0,0 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1 # CI does not need commit history
recursive: true
pipeline:
install:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn install
lint:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn workspace client run lint

View file

@ -1,22 +0,0 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1 # CI does not need commit history
recursive: true
pipeline:
install:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn install
lint:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn workspace foundkey-js run lint

52
.woodpecker/lint.yml Normal file
View file

@ -0,0 +1,52 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1 # CI does not need commit history
recursive: true
pipeline:
install:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn install
backend:
when:
event:
- pull_request
image: node:18.6.0
commands:
- yarn workspace backend run lint
client:
when:
status:
- success
- failure
event:
- pull_request
image: node:18.6.0
commands:
- yarn workspace client run lint
foundkey-js:
when:
status:
- success
- failure
event:
- pull_request
image: node:18.6.0
commands:
- yarn workspace foundkey-js run lint
sw:
when:
status:
- success
- failure
event:
- pull_request
image: node:18.6.0
commands:
- yarn workspace sw run lint