Test GitHub Action installer #622
Workflow file for this run
This file contains 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 GitHub Action installer | |
on: | |
merge_group: | |
pull_request: | |
paths: | |
- install-from-binstall-release.ps1 | |
- install-from-binstall-release.sh | |
- action.yml | |
push: | |
branches: | |
- main | |
paths: | |
- install-from-binstall-release.ps1 | |
- install-from-binstall-release.sh | |
- action.yml | |
jobs: | |
test-gha-installer: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cargo-binstall | |
uses: ./ # uses action.yml from root of the repo | |
env: | |
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
- name: Verify successful installation - display cargo-binstall's help | |
run: cargo binstall --help | |
- name: Verify successful installation - install example binary using cargo-binstall | |
run: cargo binstall -y ripgrep | |
env: | |
GITHUB_TOKEN: ${{ secrets.CI_RELEASE_TEST_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
- name: Verify successful installation - display help of installed binary | |
run: rg --help |