Browse Source

chore: ci of build info (#41264)

* chore: ci of build info

* chore: more
pull/41267/head
二货爱吃白萝卜 2 years ago
committed by GitHub
parent
commit
649788e49f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .github/workflows/mock-project-build.yml
  2. 6
      scripts/ci-mock-project-build.sh

14
.github/workflows/mock-project-build.yml

@ -2,16 +2,28 @@
name: Mock Project Build
on:
workflow_dispatch:
schedule:
- cron: "*/30 * * * *"
- cron: '*/30 * * * *'
jobs:
pr-check-ci:
runs-on: ubuntu-latest
name: Build Project
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Run Script
run: bash ./scripts/ci-mock-project-build.sh
- uses: actions-cool/ci-notice@v1
if: ${{ failure() }}
with:
notice-types: 'dingding'
dingding-token: ${{ secrets.DINGDING_BOT_COLLABORATOR_TOKEN }}
notice-title: 'CI Mock Project Build Failed'

6
scripts/ci-mock-project-build.sh

@ -4,11 +4,11 @@
rm -rf ~tmpProj/
# clone project
git clone https://github.com/ant-design/ant-design-pro.git ~tmpProj --depth=1
git clone https://github.com/ant-design/create-next-app-antd.git ~tmpProj --depth=1
# install
cd ~tmpProj
tnpm i
yarn
# build
npm run build
yarn run build
Loading…
Cancel
Save