Skip to content

Commit

Permalink
test: update script install CI test
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 11, 2024
1 parent 43d6254 commit 12f8c23
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/install-kcl-lsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Check Install Script KCL Language Server
run: static/script/install-kcl-lsp.sh
run: curl -fsSL https://kcl-lang.io/script/install-kcl-lsp.sh | /bin/bash
- name: Check run
shell: bash -leo pipefail {0}
run: sudo kcl-language-server version
Expand All @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Check Install Script KCL Language Server
run: static/script/install-kcl-lsp.sh
run: wget -q https://kcl-lang.io/script/install-kcl-lsp.sh -O - | /bin/bash
- name: Check run
shell: bash -ieo pipefail {0}
run: kcl-language-server version
Expand All @@ -35,7 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Check Install Script KCL Language Server
run: static/script/install-kcl-lsp.ps1
run: powershell -Command "iwr -useb https://kcl-lang.io/script/install-kcl-lsp.ps1 | iex"
- name: Check run
run: C:\kclvm\bin\kcl-language-server.exe version

Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/install-kcl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Install Script Core
run: static/script/install.sh

- name: Check Install Script CLI
run: static/script/install-cli.sh
run: curl -fsSL https://kcl-lang.io/script/install-cli.sh | /bin/bash
- name: Check KCL run
shell: bash -leo pipefail {0}
run: sudo kcl version && sudo kcl run ./examples/configuration/nginx.k
Expand All @@ -28,8 +25,7 @@ jobs:
run: go install kcl-lang.io/cli/cmd/kcl@main && sudo $HOME/go/bin/kcl version && sudo $HOME/go/bin/kcl run ./examples/configuration/nginx.k

- name: Check Uninstall Script CLI
run: static/script/uninstall-cli.sh

run: curl -fsSL https://kcl-lang.io/script/uninstall-cli.sh | /bin/bash

check-linux:
strategy:
Expand All @@ -38,11 +34,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Check Install Script Core
run: static/script/install.sh

- name: Check Install Script CLI
run: static/script/install-cli.sh
run: wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash
- name: Check KCL run
shell: bash -ieo pipefail {0}
run: |
Expand All @@ -57,7 +50,7 @@ jobs:
run: go install kcl-lang.io/cli/cmd/kcl@main && sudo $HOME/go/bin/kcl version && sudo $HOME/go/bin/kcl run ./examples/configuration/nginx.k

- name: Check Uninstall Script CLI
run: static/script/uninstall-cli.sh
run: wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash

check-windows:
runs-on: windows-latest
Expand All @@ -81,7 +74,7 @@ jobs:
run: go install kcl-lang.io/cli/cmd/kcl@main && C:\Users\runneradmin\go\bin\kcl.exe run ./examples/configuration/nginx.k

- name: Check Uninstall Script CLI
run: static/script/uninstall-cli.ps1
run: powershell -Command "iwr -useb https://kcl-lang.io/script/uninstall-cli.ps1 | iex"

check-kcl-scoop-install:
runs-on: windows-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
将 KCL windows 最新版本安装到 $Env:SystemDrive\kclvm\bin,并将该目录添加到用户 PATH 环境变量中。

```bash
wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
powershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex"
```

卸载
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
将 KCL windows 最新版本安装到 $Env:SystemDrive\kclvm\bin,并将该目录添加到用户 PATH 环境变量中。

```bash
wget -q https://kcl-lang.io/script/uninstall-cli.sh -O - | /bin/bash
powershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex"
```

卸载
Expand Down

0 comments on commit 12f8c23

Please sign in to comment.