2022-06-07 14:38:41 +00:00
|
|
|
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:
|
2024-08-20 05:49:53 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-06-07 14:38:41 +00:00
|
|
|
- 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"
|