Added --auto feature for non-tty #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test gh-install | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install extension locally | |
| run: gh extension install . | |
| - name: Test basic auto mode | |
| run: | | |
| gh install orf/gping --auto | |
| gping --version | |
| - name: Test with pattern filter | |
| run: | | |
| gh install BurntSushi/ripgrep --auto --pattern '*.tar.gz$' | |
| rg --version | |
| - name: Test with custom binary name | |
| run: | | |
| gh install sharkdp/fd --auto --name fdfind | |
| fdfind --version | |
| - name: Test with specific version | |
| run: | | |
| gh install cli/cli --auto --version v2.40.0 | |
| gh version | grep "2.40.0" |