Skip to content

Commit

Permalink
fix(language-server): add ci check for published executable startup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimon-au committed Nov 19, 2023
1 parent 0cf1ab5 commit 5d2090f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/contextive-vscode-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
working-directory: ./src
- name: Build Language Server
run: |
dotnet publish -c Release -r ${{ matrix.dotnet_runtime }} -o publish --self-contained
dotnet publish -c Release -r ${{ matrix.dotnet_runtime }} -o publish
working-directory: ./src/language-server/Contextive.LanguageServer
- name: Copy Language Server to VsCode Extension Folder
run: mkdir -p ../../vscode/contextive/dist && cp publish/* ../../vscode/contextive/dist
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/contextive-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ jobs:
name: Language Server Tests ${{ runner.os }}
path: "src/**/Contextive.*.Tests/TestResults/TestResults.*-${{ env.dotnet-version }}-${{ runner.os }}.xml"
reporter: dotnet-trx
- name: Publish Language Server
working-directory: ./src/language-server/Contextive.LanguageServer
run: |
dotnet publish -c Release -r ${{ matrix.dotnet_runtime }} -o publish
- name: Check Published Version
if: runner.os == 'Linux'
working-directory: ./src/language-server/Contextive.LanguageServer/publish
run: |
set +e
timeout -v 2 ./Contextive.LanguageServer
[ $? -eq 124 ]
- name: Restore npm dependencies
run: npm install
working-directory: ./src/vscode/contextive
Expand Down

0 comments on commit 5d2090f

Please sign in to comment.