add extra step for installing/building

This should make the CI output more readable.
This commit is contained in:
Johann150 2022-07-18 10:36:57 +02:00
parent e1f902001e
commit 7358d95e02
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
3 changed files with 24 additions and 7 deletions

View file

@ -6,7 +6,7 @@ clone:
recursive: true
pipeline:
lint:
install:
when:
event:
- push
@ -14,4 +14,11 @@ pipeline:
image: node:18.6.0
commands:
- yarn install
lint:
when:
event:
- push
- pull_request
image: node:18.6.0
commands:
- yarn --cwd ./packages/backend lint

View file

@ -6,7 +6,7 @@ clone:
recursive: true
pipeline:
lint:
install:
when:
event:
- push
@ -14,4 +14,11 @@ pipeline:
image: node:18.6.0
commands:
- yarn install
lint:
when:
event:
- push
- pull_request
image: node:18.6.0
commands:
- yarn --cwd ./packages/client lint

View file

@ -6,7 +6,7 @@ clone:
recursive: true
pipeline:
mocha:
build:
when:
event:
- push
@ -17,6 +17,13 @@ pipeline:
- git diff --exit-code yarn.lock
- cp .woodpecker/misskey/test.yml .config
- yarn build
mocha:
when:
event:
- push
- pull_request
image: node:18.6.0
commands:
- yarn mocha
e2e:
when:
@ -25,10 +32,6 @@ pipeline:
- pull_request
image: cypress/included:10.3.0
commands:
- yarn install
- git diff --exit-code yarn.lock
- cp .woodpecker/misskey/test.yml .config
- yarn build
- npm run start:test &
- sleep 30 # wait for server to start
- cypress run --browser chrome