Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0430 committed Feb 11, 2025
1 parent 8bf0ff0 commit 422a01b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@

name: Unit tests

on:
pull_request:
paths:
- '.github/workflows/test.yaml'
- 'example/**'
- 'moe.nimble'
- 'src/**'
- 'tests/**'
on: push

permissions:
contents: read
Expand Down
13 changes: 6 additions & 7 deletions tests/tlspclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,10 @@ suite "lsp: Send requests":
if not isNimlangserverAvailable():
skip()
else:
const BufferId = 1
const
BufferId = 1
LanguageId = "nim"
Text = "let a: int = 0"

block:
let
Expand All @@ -1272,12 +1275,8 @@ suite "lsp: Send requests":
# workspace/didChangeConfiguration notification
assert (waitFor client.workspaceDidChangeConfiguration).isOk

const LanguageId = "nim"
let
path = getCurrentDir() / "src/moe.nim"
text = readFile(path)

check (waitFor client.textDocumentDidOpen(path, LanguageId, text)).isOk
let path = getCurrentDir() / "test.nim"
check (waitFor client.textDocumentDidOpen(path, LanguageId, Text)).isOk

template prepareLsp(bufferId: int, langId: LanguageId, rootDir, path, text: string) =
block:
Expand Down

0 comments on commit 422a01b

Please sign in to comment.