From d07a15e467338b7ad44bb09b4f6388eccbf96a43 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Wed, 18 Sep 2024 19:13:31 +0200 Subject: [PATCH] Exercise bash and powershell completion in ci (WIP) --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75e6d8f26568e..5ed5d40b83001 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: