Skip to content

Commit cce367d

Browse files
committed
ci: try fix test
1 parent d2c471f commit cce367d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/e2e_test.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
# ref: https://github.com/actions/runner-images
1414
os: [ubuntu-22.04, macos-13, windows-latest]
15-
lua_version: [5.4.7, 5.3.6, 5.1.5]
15+
lua_version: [5.4.7, 5.3.6]
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- uses: actions/checkout@v4
@@ -98,26 +98,27 @@ jobs:
9898
mingw-w64-x86_64-make
9999
100100
- name: Verify GCC and Make installation (Windows)
101-
shell: powershell
101+
shell: pwsh
102102
if: runner.os == 'Windows'
103103
run: |
104104
gcc --version
105105
make --version
106106
107107
- name: install Lua by vfox-lua plugin (Windows)
108108
if: runner.os == 'Windows'
109+
shell: pwsh
109110
env:
110111
LUA_VERSION: "${{ matrix.lua_version }}"
111112
run: |
112113
vfox install "lua@$env:LUA_VERSION"
113-
vfox use -g "lua@$env:LUA_VERSION"
114+
vfox use "lua@$env:LUA_VERSION"
114115
Invoke-Expression "$(vfox activate pwsh)"
115116
echo "===============PATH==============="
116117
echo $env:PATH
117118
echo "===============PATH==============="
118119
Invoke-Expression "$(vfox activate pwsh)"
119-
$result = lua.exe -v
120-
if ($result -match "Lua @$env:LUA_VERSION") {
120+
$result=(lua.exe -v)
121+
if ($result -match "Lua $env:LUA_VERSION") {
121122
Write-Output "lua@$env:LUA_VERSION installed successfully!"
122123
} else {
123124
Write-Output "lua@$env:LUA_VERSION installed failed!"

0 commit comments

Comments
 (0)