mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: PR test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ['**']
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: npm install
|
|
env:
|
|
NODE_OPTIONS: '--max-old-space-size=8192'
|
|
run: |
|
|
npm i --legacy-peer-deps
|
|
cd packages/ooxml-viewer
|
|
npm i --legacy-peer-deps
|
|
cd ../../
|
|
npm run build --workspace amis-formula
|
|
npm run build --workspace amis-core
|
|
npm run build --workspace amis-ui
|
|
npm run build --workspace amis
|
|
npm run build --workspace amis-editor-core
|
|
npm run build --workspace amis-editor
|
|
- name: typescript check
|
|
env:
|
|
NODE_OPTIONS: '--max-old-space-size=8192'
|
|
run: |
|
|
npm run typecheck
|
|
- name: test
|
|
run: |
|
|
npm test --workspaces
|
|
cd packages/ooxml-viewer
|
|
npm test
|
|
cd ../../
|
|
sh deploy-gh-pages.sh
|