From f03e8776927fb452672fe6127f06e5484254ad66 Mon Sep 17 00:00:00 2001 From: peefy Date: Tue, 21 Nov 2023 22:23:39 +0800 Subject: [PATCH] test: add kcl language server install script tests Signed-off-by: peefy --- .github/workflows/install-kcl-lsp.yml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/install-kcl-lsp.yml diff --git a/.github/workflows/install-kcl-lsp.yml b/.github/workflows/install-kcl-lsp.yml new file mode 100644 index 00000000..793e6463 --- /dev/null +++ b/.github/workflows/install-kcl-lsp.yml @@ -0,0 +1,40 @@ +name: script-kcl-lsp +on: + push: + branches: + - main +jobs: + check-macos: + strategy: + matrix: + os: [macos-11, macos-12, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Check Install Script KCL Language Server + run: static/script/install-kcl-lsp.sh + - name: Check run + shell: bash -leo pipefail {0} + run: sudo kcl-language-server version + + check-linux: + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Check Install Script KCL Language Server + run: static/script/install-kcl-lsp.sh + - name: Check run + shell: bash -ieo pipefail {0} + run: kcl-language-server version + + check-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Check Install Script KCL Language Server + run: static/script/install-cli.ps1 + - name: Check run + run: C:\kclvm\bin\kcl-language-server.exe version