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 recursive: true
pipeline: pipeline:
lint: install:
when: when:
event: event:
- push - push
@ -14,4 +14,11 @@ pipeline:
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn install - yarn install
lint:
when:
event:
- push
- pull_request
image: node:18.6.0
commands:
- yarn --cwd ./packages/backend lint - yarn --cwd ./packages/backend lint

View file

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

View file

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