Browse Source
chore: ci of build info (#41264)
* chore: ci of build info
* chore: more
pull/41267/head
二货爱吃白萝卜
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
16 additions and
4 deletions
-
.github/workflows/mock-project-build.yml
-
scripts/ci-mock-project-build.sh
|
|
@ -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' |
|
|
|
|
|
@ -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 |