From ecc755b0845e382a94fb6739da022ba313f3de77 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Wed, 23 Sep 2020 19:47:22 +0800 Subject: [PATCH] chore: update workflow --- .github/workflows/codecov.yml | 19 +++++++++---------- .github/workflows/test.yml | 18 +++++++++--------- components/slider/__tests__/index.test.js | 2 +- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 135820499..3f49287fe 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -41,16 +41,15 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 - with: - token: ${{ secrets.ACCESS_TOKEN }} - - - name: Checkout submodules - uses: actions/checkout@v2 - with: - repository: tangjinzhou/antdv-demo - token: ${{ secrets.ACCESS_TOKEN }} - path: antdv-demo - submodules: true + # with: + # token: ${{ secrets.ACCESS_TOKEN }} + # - name: Checkout submodules + # uses: actions/checkout@v2 + # with: + # repository: tangjinzhou/antdv-demo + # token: ${{ secrets.ACCESS_TOKEN }} + # path: antdv-demo + # submodules: true - name: restore cache from package-lock.json uses: actions/cache@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c67b8bf2..262dfb2ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,16 +97,16 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 - with: - token: ${{ secrets.ACCESS_TOKEN }} - - name: Checkout submodules - uses: actions/checkout@v2 - with: - repository: tangjinzhou/antdv-demo - token: ${{ secrets.ACCESS_TOKEN }} - path: antdv-demo - submodules: true + # with: + # token: ${{ secrets.ACCESS_TOKEN }} + # - name: Checkout submodules + # uses: actions/checkout@v2 + # with: + # repository: tangjinzhou/antdv-demo + # token: ${{ secrets.ACCESS_TOKEN }} + # path: antdv-demo + # submodules: true - name: restore cache from package-lock.json uses: actions/cache@v1 diff --git a/components/slider/__tests__/index.test.js b/components/slider/__tests__/index.test.js index 2d602d37c..71e5ad3cb 100644 --- a/components/slider/__tests__/index.test.js +++ b/components/slider/__tests__/index.test.js @@ -19,7 +19,7 @@ describe('Slider', () => { await asyncExpect(() => { expect(document.body.innerHTML).toMatchSnapshot(); wrapper.findAll('.ant-slider-handle')[0].trigger('mouseleave'); - }); + }, 0); await asyncExpect(() => { expect(document.body.innerHTML).toMatchSnapshot(); }, 0);