add dashboard ci (#256)

* Update 更新配置

* Add dashboard ci

* Fix ci

* Fix ci
This commit is contained in:
hanxie
2020-09-10 16:57:08 +08:00
committed by GitHub
parent 4aad15bb64
commit 7accf86367
4 changed files with 30 additions and 2 deletions

25
.github/workflows/dashboard.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Dashboard
on:
push:
branches: [ master ]
pull_request:
defaults:
run:
working-directory: ./dashboard
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present

2
.gitignore vendored
View File

@@ -36,6 +36,8 @@ tmp/
# Dashboard
dashboard/node_modules/
.eslintcache
dashboard/dist/
dashboard/package-lock.json
dashboard/src/.umi/
package-lock.json

File diff suppressed because one or more lines are too long

View File

@@ -5,7 +5,9 @@ import proxy from './proxy';
const { REACT_APP_ENV } = process.env;
export default defineConfig({
hash: true,
publicPath: '/',
history: { type: 'hash' },
hash: false,
antd: {},
dva: {
hmr: true,