Skip to content

Commit

Permalink
chore: upgrade node v18 on github actions and use server.deps.inline …
Browse files Browse the repository at this point in the history
…option on vitest (nuxt-modules#2427)
  • Loading branch information
kazupon authored Sep 20, 2023
1 parent 568c274 commit a13dec9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16]
node-version: [18]
os: [ubuntu-latest]
timeout-minutes: 10

Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16]
node-version: [18]
os: [ubuntu-latest]
timeout-minutes: 10

Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16]
node-version: [18]
os: [ubuntu-latest]
timeout-minutes: 15

Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16]
node-version: [18]
os: [ubuntu-latest]
steps:
- name: Checkout codes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: 'pnpm'

- name: Install dependencies
Expand Down
6 changes: 4 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ export default defineConfig({
restoreMocks: true,
threads: false,
testTimeout: 300000,
deps: {
inline: [/@nuxt\/test-utils/]
server: {
deps: {
inline: [/@nuxt\/test-utils/]
}
}
}
})

0 comments on commit a13dec9

Please sign in to comment.