Skip to content

Commit

Permalink
ci: use xvfb-run
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Mar 4, 2024
1 parent 760bb61 commit 3651e1c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/vitest-vscode.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { runInRepo } from '../utils'
import { runInRepo, $ } from '../utils'
import { RunOptions } from '../types'

// npx tsx ecosystem-ci.ts vitest-vscode --release 1.3.1
import process from 'node:process'

export async function test(options: RunOptions) {
await runInRepo({
...options,
build: 'compile',
repo: 'vitest-dev/vscode',
test: 'test',
test: async () => {
if (process.env.CI === 'true' && process.platform === 'linux') {
await $`xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' pnpm test`
} else {
await $`pnpm test`
}
},

// https://github.com/vitest-dev/vscode/pull/276
// repo: 'hi-ogawa/vitest-vscode',
Expand Down

0 comments on commit 3651e1c

Please sign in to comment.