diff --git a/.github/workflows/size-check.yml b/.github/workflows/ci.yml similarity index 50% rename from .github/workflows/size-check.yml rename to .github/workflows/ci.yml index 5fe9f52f..6afc35da 100644 --- a/.github/workflows/size-check.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,28 @@ -name: 'size' +name: 'test' on: push: branches: - - master + - '**' pull_request: branches: - master jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: bahmutov/npm-install@v1 + - name: Run unit tests + run: yarn test --ci + + test-dts: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: bahmutov/npm-install@v1 + - name: Run type declaration tests + run: yarn test-dts + size: runs-on: ubuntu-latest env: @@ -15,7 +31,8 @@ jobs: - uses: actions/checkout@v1 - uses: bahmutov/npm-install@v1 - - uses: posva/size-check-action@v1.1.2 + - name: Check build size + uses: posva/size-check-action@v1.1.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} build_script: size diff --git a/.github/workflows/test-dts.yml b/.github/workflows/test-dts.yml deleted file mode 100644 index e805670e..00000000 --- a/.github/workflows/test-dts.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'test-dts' -on: - push: - branches: - - '**' - pull_request: - branches: - - master -jobs: - size: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: bahmutov/npm-install@v1 - - name: test dts - run: yarn test-dts \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 65c57bb8..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'test' -on: - push: - branches: - - '**' - pull_request: - branches: - - master -jobs: - size: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: bahmutov/npm-install@v1 - - name: test dts - run: yarn test --ci \ No newline at end of file diff --git a/packages/vue/__tests__/Transition.spec.ts b/packages/vue/__tests__/Transition.spec.ts index ecde3e36..78b7acb8 100644 --- a/packages/vue/__tests__/Transition.spec.ts +++ b/packages/vue/__tests__/Transition.spec.ts @@ -860,13 +860,17 @@ describe('e2e: Transition', () => { 'test-anim-long-leave-active', 'test-anim-long-leave-to' ]) - await new Promise(r => { - setTimeout(r, duration - buffer) - }) - expect(await classList('#container div')).toStrictEqual([ - 'test-anim-long-leave-active', - 'test-anim-long-leave-to' - ]) + + if (!process.env.CI) { + await new Promise(r => { + setTimeout(r, duration - buffer) + }) + expect(await classList('#container div')).toStrictEqual([ + 'test-anim-long-leave-active', + 'test-anim-long-leave-to' + ]) + } + await transitionFinish(duration * 2) expect(await html('#container')).toBe('') @@ -880,13 +884,17 @@ describe('e2e: Transition', () => { 'test-anim-long-enter-active', 'test-anim-long-enter-to' ]) - await new Promise(r => { - setTimeout(r, duration - buffer) - }) - expect(await classList('#container div')).toStrictEqual([ - 'test-anim-long-enter-active', - 'test-anim-long-enter-to' - ]) + + if (!process.env.CI) { + await new Promise(r => { + setTimeout(r, duration - buffer) + }) + expect(await classList('#container div')).toStrictEqual([ + 'test-anim-long-enter-active', + 'test-anim-long-enter-to' + ]) + } + await transitionFinish(duration * 2) expect(await html('#container')).toBe('