forked from FoundKeyGang/FoundKey
Johann150
a10b8875d9
Since PRs seem to be much rarer than pushes to main, it makes more sense to do it this way. Perhaps in the future, it would make sense to run it on all pushes, but the question would be how PRs are handled.
22 lines
397 B
YAML
22 lines
397 B
YAML
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
depth: 1 # CI does not need commit history
|
|
recursive: true
|
|
|
|
pipeline:
|
|
install:
|
|
when:
|
|
branch: main
|
|
event: push
|
|
image: node:18.6.0
|
|
commands:
|
|
- yarn install
|
|
lint:
|
|
when:
|
|
branch: main
|
|
event: push
|
|
image: node:18.6.0
|
|
commands:
|
|
- yarn workspace foundkey-js run lint
|