Skip to content

Commit 5ab2096

Browse files
committed
fix(ci): ensure sqlite3 is on PATH for windows e2e
1 parent ce8fce7 commit 5ab2096

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,23 @@ jobs:
122122

123123
- name: Install sqlite3 (Windows)
124124
if: runner.os == 'Windows'
125-
run: choco install sqlite --no-progress -y
125+
shell: pwsh
126+
run: |
127+
choco install sqlite --no-progress -y
128+
129+
# Ensure sqlite3 is immediately available in this job and subsequent steps.
130+
$chocoBin = Join-Path $env:ProgramData 'chocolatey\bin'
131+
if (Test-Path $chocoBin) {
132+
$chocoBin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
133+
$env:PATH = "$chocoBin;$env:PATH"
134+
}
135+
136+
$sqlite = Get-Command sqlite3 -ErrorAction SilentlyContinue
137+
if (-not $sqlite) {
138+
throw 'sqlite3 was not found on PATH after Chocolatey install.'
139+
}
140+
141+
sqlite3 --version
126142
127143
- run: pnpm install --frozen-lockfile
128144
env:

0 commit comments

Comments
 (0)