chore: update workflow

pull/2900/head
tanjinzhou 2020-09-23 19:47:22 +08:00
parent c325f246cf
commit ecc755b084
3 changed files with 19 additions and 20 deletions

View File

@ -41,16 +41,15 @@ jobs:
steps: steps:
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: # with:
token: ${{ secrets.ACCESS_TOKEN }} # token: ${{ secrets.ACCESS_TOKEN }}
# - name: Checkout submodules
- name: Checkout submodules # uses: actions/checkout@v2
uses: actions/checkout@v2 # with:
with: # repository: tangjinzhou/antdv-demo
repository: tangjinzhou/antdv-demo # token: ${{ secrets.ACCESS_TOKEN }}
token: ${{ secrets.ACCESS_TOKEN }} # path: antdv-demo
path: antdv-demo # submodules: true
submodules: true
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v1 uses: actions/cache@v1

View File

@ -97,16 +97,16 @@ jobs:
steps: steps:
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: Checkout submodules # with:
uses: actions/checkout@v2 # token: ${{ secrets.ACCESS_TOKEN }}
with: # - name: Checkout submodules
repository: tangjinzhou/antdv-demo # uses: actions/checkout@v2
token: ${{ secrets.ACCESS_TOKEN }} # with:
path: antdv-demo # repository: tangjinzhou/antdv-demo
submodules: true # token: ${{ secrets.ACCESS_TOKEN }}
# path: antdv-demo
# submodules: true
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v1 uses: actions/cache@v1

View File

@ -19,7 +19,7 @@ describe('Slider', () => {
await asyncExpect(() => { await asyncExpect(() => {
expect(document.body.innerHTML).toMatchSnapshot(); expect(document.body.innerHTML).toMatchSnapshot();
wrapper.findAll('.ant-slider-handle')[0].trigger('mouseleave'); wrapper.findAll('.ant-slider-handle')[0].trigger('mouseleave');
}); }, 0);
await asyncExpect(() => { await asyncExpect(() => {
expect(document.body.innerHTML).toMatchSnapshot(); expect(document.body.innerHTML).toMatchSnapshot();
}, 0); }, 0);