mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Add GitHub Action declaration for installing cargo-binstall
(#1269)
add action.yml and test it
This commit is contained in:
parent
8e6dcc57ff
commit
42dddd972d
3 changed files with 54 additions and 0 deletions
36
.github/workflows/gh-action.yml
vendored
Normal file
36
.github/workflows/gh-action.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
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@v3
|
||||
|
||||
- name: Install cargo-binstall
|
||||
uses: ./ # uses action.yml from root of the repo
|
||||
|
||||
- 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
|
||||
|
||||
- name: Verify successful installation - display help of installed binary
|
||||
run: rg --help
|
Loading…
Add table
Add a link
Reference in a new issue