mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add node workflow
This commit is contained in:
parent
cca813e5e5
commit
88f22468bf
40
.github/workflows/node.yml
vendored
Normal file
40
.github/workflows/node.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: Node.js CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- apps/backtest-report
|
||||||
|
- frontend
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- apps/backtest-report
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [ 16.x ]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- run: npm install -g yarn
|
||||||
|
- name: Install
|
||||||
|
run: yarn install
|
||||||
|
working-directory: "apps/backtest-report"
|
||||||
|
- name: Build
|
||||||
|
run: yarn run next build
|
||||||
|
working-directory: "apps/backtest-report"
|
||||||
|
- name: Export
|
||||||
|
run: yarn run next export
|
||||||
|
working-directory: "apps/backtest-report"
|
||||||
|
- run: yarn export
|
||||||
|
working-directory: "frontend"
|
|
@ -3,11 +3,11 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "yarn run next dev",
|
||||||
"build": "next build",
|
"build": "yarn run next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"export": "next build && next export"
|
"export": "yarn run next build && yarn run next export"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mantine/core": "^4.2.5",
|
"@mantine/core": "^4.2.5",
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "yarn run next dev",
|
||||||
"build": "next build",
|
"build": "yarn run next build",
|
||||||
"start": "next start",
|
"start": "yarn run next start",
|
||||||
"export": "next build && next export"
|
"export": "yarn run next build && yarn run next export"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@material-ui/core": "^4.11.2",
|
"@material-ui/core": "^4.11.2",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user