2023-09-18 21:01:08 +05:30
|
|
|
steps:
|
2023-09-18 22:18:54 +05:30
|
|
|
setup_forgeo:
|
|
|
|
image: python
|
|
|
|
commands:
|
2023-09-18 22:19:52 +05:30
|
|
|
- pip install requests
|
2023-09-18 23:24:07 +05:30
|
|
|
- sleep 10 && curl http://forgejo:3000
|
2023-09-18 22:18:54 +05:30
|
|
|
- make env.config
|
|
|
|
|
2023-09-18 21:01:08 +05:30
|
|
|
build:
|
2023-09-18 22:05:19 +05:30
|
|
|
image: node:18
|
|
|
|
commands:
|
2023-09-18 22:10:12 +05:30
|
|
|
- corepack enable
|
|
|
|
- corepack prepare pnpm@latest-8 --activate
|
2023-09-18 22:05:19 +05:30
|
|
|
- pnpm install
|
|
|
|
- pnpm run lint
|
2023-09-18 22:18:54 +05:30
|
|
|
- pnpm run test
|
2023-09-18 22:05:19 +05:30
|
|
|
- pnpm run build
|
|
|
|
- pnpm run doc
|
2023-09-18 21:01:08 +05:30
|
|
|
|
|
|
|
services:
|
|
|
|
forgejo:
|
|
|
|
image: codeberg.org/forgejo/forgejo:1.20.1-0
|
|
|
|
environment:
|
|
|
|
- FORGEJO_cors_ENABLED=true
|
|
|
|
- FORGEJO_cors_ALLOW_DOMAIN="*"
|
|
|
|
- FORGEJO_cors_METHODS="GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS"
|
|
|
|
- FORGEJO_cors_ALLOW_CREDENTIALS=false
|
|
|
|
volumes:
|
2023-09-18 23:24:07 +05:30
|
|
|
- /woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core:/data/gitea/conf/ci/app.ini
|