diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da24ddb7aa..5caa3a7649 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -191,11 +191,11 @@ jobs: - name: build run: yarn test:fixtures -i - - name: cache fixtures - uses: actions/cache@v2 + - name: Save fixtures + uses: actions/upload-artifact@v2 with: + name: fixtures-${{ matrix.os }}-node-v${{ matrix.node }} path: test/fixtures - key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }} needs: setup lint-app: @@ -225,10 +225,10 @@ jobs: key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }} - name: restore fixtures - uses: actions/cache@v2 + uses: actions/download-artifact@v2 with: + name: fixtures-${{ matrix.os }}-node-v${{ matrix.node }} path: test/fixtures - key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }} - name: lint app run: yarn lint:app @@ -262,13 +262,13 @@ jobs: key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }} - name: restore fixtures - uses: actions/cache@v2 + uses: actions/download-artifact@v2 with: + name: fixtures-${{ matrix.os }}-node-v${{ matrix.node }} path: test/fixtures - key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }} - name: test dev - run: yarn test:dev -w=2 + run: yarn test:dev needs: build test-e2e: @@ -299,10 +299,10 @@ jobs: key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }} - name: restore fixtures - uses: actions/cache@v2 + uses: actions/download-artifact@v2 with: + name: fixtures-${{ matrix.os }}-node-v${{ matrix.node }} path: test/fixtures - key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }} - name: test e2e run: yarn test:e2e diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 712f8c3b14..0c9e37d790 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -118,11 +118,11 @@ jobs: - name: build run: yarn test:fixtures - - name: cache fixtures - uses: actions/cache@v2 + - name: Save fixtures + uses: actions/upload-artifact@v2 with: + name: fixtures-${{ matrix.os }}-node-v${{ matrix.node }} path: test/fixtures - key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }} needs: setup test-dev: @@ -155,10 +155,10 @@ jobs: key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }} - name: restore fixtures - uses: actions/cache@v2 + uses: actions/download-artifact@v2 with: + name: fixtures-${{ matrix.os }}-node-v${{ matrix.node }} path: test/fixtures - key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }} - name: test dev run: yarn test:dev diff --git a/package.json b/package.json index 206c24a2a8..853c6f864d 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "nuxt": "jiti ./packages/cli/bin/nuxt-cli.js", "pkg": "jiti ./scripts/pkg.js", "test": "yarn test:fixtures && yarn test:dev && yarn test:unit && test:types", - "test:dev": "jest test/dev --forceExit", + "test:dev": "jest test/dev --forceExit --runInBand", "test:e2e": "jest -i test/e2e --forceExit", "test:fixtures": "jest test/fixtures --forceExit", "test:lint": "yarn lint && yarn ls-lint",