Skip to content

Commit

Permalink
Exercise bash and powershell completion in ci (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Sep 18, 2024
1 parent c8e934c commit d07a15e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ jobs:
$uv venv
$uv pip install ruff
- name: "Test completion"
run: |
uv="./target/debug/uv"
uvx="./target/debug/uvx"
eval "$($uv generate-shell-completion bash)"
eval "$($uvx --generate-shell-completion bash)"
cargo-test-macos:
timeout-minutes: 10
needs: determine_changes
Expand Down Expand Up @@ -285,6 +292,20 @@ jobs:
working-directory: ${{ env.UV_WORKSPACE }}
run: rustup show

- name: "Test completion"
shell: powershell
run: |
Set-Alias -Name uv -Value ./target/debug/uv
Set-Alias -Name uvx -Value ./target/debug/uvx
(& $uv generate-shell-completion powershell) | Out-String | Invoke-Expression
(& $uvx --generate-shell-completion powershell) | Out-String | Invoke-Expression
- name: "Test completion"
shell: bash -e
run: |
false # stop early
- name: "Install cargo nextest"
uses: taiki-e/install-action@v2
with:
Expand Down

0 comments on commit d07a15e

Please sign in to comment.