mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 11:26:43 +08:00
update config
This commit is contained in:
parent
e3bdc62d1c
commit
5d1108d635
@ -13,7 +13,13 @@ orbs:
|
|||||||
workflows:
|
workflows:
|
||||||
build-test-publish:
|
build-test-publish:
|
||||||
jobs:
|
jobs:
|
||||||
|
- build-frontend:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /.*/
|
||||||
- test:
|
- test:
|
||||||
|
requires:
|
||||||
|
- build-frontend
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
@ -27,6 +33,22 @@ workflows:
|
|||||||
only: /^v.*/
|
only: /^v.*/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build-frontend:
|
||||||
|
docker:
|
||||||
|
- image: cimg/node
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- node/install-packages:
|
||||||
|
app-dir: ./admin-frontend
|
||||||
|
pkg-manager: yarn
|
||||||
|
- run:
|
||||||
|
name: yarn build
|
||||||
|
working_directory: ./admin-frontend
|
||||||
|
command: yarn build
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths:
|
||||||
|
- "src/plugins/nonebot_hk_reporter/admin_page/dist/"
|
||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/python:3.9
|
- image: cimg/python:3.9
|
||||||
@ -38,11 +60,8 @@ jobs:
|
|||||||
# - run: sed -e '41,45d' -i pyproject.toml
|
# - run: sed -e '41,45d' -i pyproject.toml
|
||||||
- python/install-packages:
|
- python/install-packages:
|
||||||
pkg-manager: poetry
|
pkg-manager: poetry
|
||||||
- node/install-packages:
|
|
||||||
app-dir: ./admin-frontend
|
|
||||||
pkg-manager: yarn
|
|
||||||
- node/run:
|
- node/run:
|
||||||
app-dir: ./adin-frontend
|
app-dir: ./admin-frontend
|
||||||
yarn-run: build
|
yarn-run: build
|
||||||
- run:
|
- run:
|
||||||
name: Coverage test
|
name: Coverage test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user