From 31555161e990f4eef178b48f90a15190c47a48c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Wed, 15 Mar 2023 10:51:14 +0800 Subject: [PATCH] docs: update demo (#41248) --- .github/workflows/mock-project-build.yml | 17 + .../__snapshots__/demo-extend.test.ts.snap | 410 ++++++------------ .../__tests__/__snapshots__/demo.test.ts.snap | 236 ++++------ components/empty/demo/config-provider.tsx | 2 +- scripts/ci-mock-project-build.sh | 14 + 5 files changed, 256 insertions(+), 423 deletions(-) create mode 100644 .github/workflows/mock-project-build.yml create mode 100644 scripts/ci-mock-project-build.sh diff --git a/.github/workflows/mock-project-build.yml b/.github/workflows/mock-project-build.yml new file mode 100644 index 0000000000..1222bf534d --- /dev/null +++ b/.github/workflows/mock-project-build.yml @@ -0,0 +1,17 @@ +# Build a cron job to create a umi project which use antd and dumi, and then build it. +name: Mock Project Build + +on: + schedule: + - cron: "*/30 * * * *" + +jobs: + pr-check-ci: + runs-on: ubuntu-latest + name: Build Project + steps: + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Run Script + run: bash ./scripts/ci-mock-project-build.sh diff --git a/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap index 0027e50e53..d5c4dbb911 100644 --- a/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -78,8 +78,8 @@ exports[`renders components/empty/demo/basic.tsx extend context correctly 1`] = exports[`renders components/empty/demo/config-provider.tsx extend context correctly 1`] = ` Array [