mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-10 19:31:21 +08:00
30 lines
670 B
YAML
30 lines
670 B
YAML
name: PR test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.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: test
|
|
run: |
|
|
npm i --legacy-peer-deps
|
|
npm test
|
|
sh deploy-gh-pages.sh
|