Skip to content

Commit

Permalink
fix shell completion test on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ede1998 committed Nov 8, 2024
1 parent d3df375 commit 902db44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3
- name: Test shell completions
# pre-fetch bash-completion then get its path in the store
run: nix build nixpkgs#bash-completion; BASH_COMPLETION_PKG=$(nix path-info nixpkgs#bash-completion) nix shell . nixpkgs#expect nixpkgs#bash-completion -c tests/shell_completions.exp
run: |
# pre-fetch bash-completion then get its path in the store
nix build nixpkgs#bash-completion
export BASH_COMPLETION_PKG=$(nix path-info nixpkgs#bash-completion)
# use bashInteractive from nixpkgs because default bash is too old for bash-completion on macOS
nix shell . nixpkgs#expect nixpkgs#bash-completion nixpkgs#bashInteractive -c tests/shell_completions.exp

0 comments on commit 902db44

Please sign in to comment.