cargo-binstall/.github/workflows/gh-action.yml
Jiahao XU 0a9f17f1ba
Speedup and prevent rate limit in gh-action.yml (#1811)
By passing github token

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-06 04:27:28 +00:00

40 lines
1.1 KiB
YAML

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-14, 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.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.GITHUB_TOKEN }}
- name: Verify successful installation - display help of installed binary
run: rg --help