Skip to content

Commit

Permalink
ci: fix vitest cacheDir
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperse-net committed May 23, 2024
1 parent 3379b95 commit 09e66aa
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 43 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci-next-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ jobs:
- name: 📥 Monorepo install
uses: ./.github/actions/yarn-nm-install

- name: Patch next typings
working-directory: './'
run: |
yarn patch-package
- name: Typecheck
working-directory: packages/next-auth
run: |
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/release-or-version-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
- name: 📥 Monorepo install
uses: ./.github/actions/yarn-nm-install

- name: Patch next typings
working-directory: './'
run: |
yarn patch-package
# @link https://github.com/changesets/action
- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"deps:update": "yarn dlx npm-check-updates@latest --configFileName .ncurc.json -u --deep --mergeConfig",
"check:install": "yarn dlx @yarnpkg/[email protected] .",
"install:playwright": "npx playwright install",
"postinstall": "is-ci || yarn husky",
"patch-package": "patch-package"
"postinstall": "is-ci || yarn husky"
},
"config": {
"commitizen": {
Expand Down
4 changes: 1 addition & 3 deletions packages/next-auth/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
plugins: [tsConfigPaths()],
cacheDir: '../../.cache/vitest/next-auth',
test: {
// Makebe suite for local debug
testTimeout: 1000 * 30,
globals: true,
environment: 'node',
passWithNoTests: true,
cache: {
dir: '../../.cache/vitest/next-auth',
},
coverage: {
provider: 'istanbul',
reporter: ['json-summary', 'html'],
Expand Down
4 changes: 1 addition & 3 deletions packages/next-core/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
plugins: [tsConfigPaths()],
cacheDir: '../../.cache/vitest/next-core',
test: {
// Makebe suite for local debug
testTimeout: 1000 * 30,
globals: true,
environment: 'node',
passWithNoTests: true,
cache: {
dir: '../../.cache/vitest/next-core',
},
coverage: {
provider: 'istanbul',
reporter: ['json-summary', 'html'],
Expand Down
4 changes: 1 addition & 3 deletions packages/next-demo/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ export default defineConfig({
resolve: {
alias: [],
},
cacheDir: '../../.cache/vitest/next-demo',
test: {
setupFiles: 'dotenv/config',
globals: true,
exclude: [...configDefaults.exclude, '**/playwright/**'],
cache: {
dir: '../../.cache/vitest/next-demo',
},
alias: {
'@/': fileURLToPath(new URL('./src/', import.meta.url)),
},
Expand Down
4 changes: 1 addition & 3 deletions packages/next-env/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
plugins: [tsConfigPaths()],
cacheDir: '../../.cache/vitest/next-env',
test: {
// Makebe suite for local debug
testTimeout: 1000 * 30,
globals: true,
environment: 'node',
passWithNoTests: true,
cache: {
dir: '../../.cache/vitest/next-env',
},
coverage: {
provider: 'istanbul',
reporter: ['json-summary', 'html'],
Expand Down
4 changes: 1 addition & 3 deletions packages/next-graphql/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
plugins: [tsConfigPaths()],
cacheDir: '../../.cache/vitest/next-graphql',
test: {
// Makebe suite for local debug
testTimeout: 1000 * 30,
globals: true,
environment: 'node',
passWithNoTests: true,
cache: {
dir: '../../.cache/vitest/next-graphql',
},
coverage: {
provider: 'istanbul',
reporter: ['json-summary', 'html'],
Expand Down
4 changes: 1 addition & 3 deletions packages/next-prisma/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
plugins: [tsConfigPaths()],
cacheDir: '../../.cache/vitest/next-prisma',
test: {
// Makebe suite for local debug
testTimeout: 1000 * 30,
globals: true,
environment: 'node',
passWithNoTests: true,
cache: {
dir: '../../.cache/vitest/next-prisma',
},
coverage: {
provider: 'istanbul',
reporter: ['json-summary', 'html'],
Expand Down
13 changes: 0 additions & 13 deletions patches/next+14.0.3.patch

This file was deleted.

0 comments on commit 09e66aa

Please sign in to comment.