Skip to content

Commit 33c4101

Browse files
committed
test: merge kcl brew tests on macos and linux
Signed-off-by: peefy <xpf6677@163.com>
1 parent b7c516c commit 33c4101

File tree

1 file changed

+2
-38
lines changed

1 file changed

+2
-38
lines changed

.github/workflows/install-kcl.yml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ jobs:
118118
scoop install kcl-lang/kcl
119119
kcl.exe ./static/stack/main.k
120120
121-
check-kcl-brew-install-macos:
121+
check-kcl-brew-install:
122122
strategy:
123123
matrix:
124-
os: [macos-11, macos-12, macos-latest]
124+
os: [macos-11, macos-12, macos-latest, ubuntu-latest]
125125
runs-on: ${{ matrix.os }}
126126
steps:
127127
- uses: actions/checkout@v3
@@ -134,43 +134,7 @@ jobs:
134134
kcl version
135135
kcl ./static/stack/main.k
136136
brew uninstall kcl-lang/tap/kcl
137-
138-
brew install kcl-lang/tap/kcl@0.6.0
139-
echo "brew installed successfully"
140-
kcl version
141-
kcl ./static/stack/main.k
142-
brew uninstall kcl-lang/tap/kcl@0.6.0
143-
144-
brew install kcl-lang/tap/kcl@0.7.0
145-
echo "brew installed successfully"
146-
kcl version
147-
kcl ./static/stack/main.k
148-
kcl-language-server version
149-
brew uninstall kcl-lang/tap/kcl@0.7.0
150-
brew uninstall kcl-lang/tap/kcl-lsp@0.7.0
151-
152-
brew install kcl-lang/tap/kcl-lsp
153137
brew uninstall kcl-lang/tap/kcl-lsp
154-
brew install kcl-lang/tap/kcl-lsp@0.6.0
155-
brew uninstall kcl-lang/tap/kcl-lsp@0.6.0
156-
brew install kcl-lang/tap/kcl-lsp@0.7.0
157-
kcl-language-server version
158-
brew uninstall kcl-lang/tap/kcl-lsp@0.7.0
159-
160-
check-kcl-brew-install-linux:
161-
runs-on: ubuntu-latest
162-
steps:
163-
- uses: actions/checkout@v3
164-
- uses: Homebrew/actions/setup-homebrew@master
165-
166-
- name: Check Brew Installation
167-
working-directory: .
168-
run: |
169-
brew install kcl-lang/tap/kcl
170-
echo "brew installed successfully"
171-
kcl version
172-
kcl ./static/stack/main.k
173-
brew uninstall kcl-lang/tap/kcl
174138
175139
brew install kcl-lang/tap/kcl@0.6.0
176140
echo "brew installed successfully"

0 commit comments

Comments
 (0)