diff --git a/.github/workflows/contextive-vscode-publish.yml b/.github/workflows/contextive-vscode-publish.yml index 1fb283f3..2a5e66d5 100644 --- a/.github/workflows/contextive-vscode-publish.yml +++ b/.github/workflows/contextive-vscode-publish.yml @@ -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 diff --git a/.github/workflows/contextive-vscode.yml b/.github/workflows/contextive-vscode.yml index 3c3bd754..e76de120 100644 --- a/.github/workflows/contextive-vscode.yml +++ b/.github/workflows/contextive-vscode.yml @@ -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