未验证 提交 8d3718c8 编写于 作者: E eiinu 提交者: GitHub

feat: next 分支增加 GitHub Actions 检查 (#884)

* feat: 更新 node 版本 增加 github action

* fix: 移除 pnpm/setup

* fix: update test.yaml

* fix: remove build:taro:site
上级 af73a7fc
name: CI
on:
push:
branches:
- next
pull_request:
branches:
- next
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pnpm
run: corepack enable
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run test cases
run: npm run test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pnpm
run: corepack enable
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build NutUI-React
run: npm run build
- name: Build NutUI-React-Taro
run: npm run build:taro
- name: Build NutUI-React Demo
run: npm run build:site
\ No newline at end of file
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册