2022-07-18 07:15:32 +00:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
settings:
|
|
|
|
depth: 1 # CI does not need commit history
|
|
|
|
recursive: true
|
|
|
|
|
2023-05-07 13:26:14 +00:00
|
|
|
depends_on:
|
|
|
|
- build
|
|
|
|
|
2022-07-18 07:15:32 +00:00
|
|
|
pipeline:
|
2022-07-18 08:36:57 +00:00
|
|
|
build:
|
2022-07-18 07:15:32 +00:00
|
|
|
when:
|
2023-05-07 13:26:14 +00:00
|
|
|
branch: main
|
|
|
|
event: push
|
2022-07-18 07:15:32 +00:00
|
|
|
image: node:18.6.0
|
|
|
|
commands:
|
|
|
|
- yarn install
|
|
|
|
- git diff --exit-code yarn.lock
|
|
|
|
- cp .woodpecker/misskey/test.yml .config
|
|
|
|
- yarn build
|
2022-07-18 08:36:57 +00:00
|
|
|
mocha:
|
|
|
|
when:
|
2023-05-07 13:26:14 +00:00
|
|
|
branch: main
|
|
|
|
event: push
|
2022-07-18 08:36:57 +00:00
|
|
|
image: node:18.6.0
|
|
|
|
commands:
|
2022-07-18 07:15:32 +00:00
|
|
|
- yarn mocha
|
|
|
|
e2e:
|
|
|
|
when:
|
2023-05-07 13:26:14 +00:00
|
|
|
branch: main
|
|
|
|
event: push
|
2022-07-18 07:15:32 +00:00
|
|
|
image: cypress/included:10.3.0
|
|
|
|
commands:
|
|
|
|
- npm run start:test &
|
|
|
|
- sleep 30 # wait for server to start
|
|
|
|
- cypress run --browser chrome
|
|
|
|
# TODO: upload screenshots and video artifacts?
|
|
|
|
# would need some kind of storage though
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:13
|
2022-07-27 08:38:14 +00:00
|
|
|
environment:
|
2022-07-18 07:15:32 +00:00
|
|
|
- POSTGRES_DB=test-misskey
|
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
|
|
redis:
|
|
|
|
image: redis:6
|