Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for the install script (#151)
- Loading branch information
1 parent
9ce49e6
commit 6f1e7db
Showing
2 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Install Script Integration Test | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run Install Script | ||
run: ./scripts/install.sh | ||
- name: Validate Command is Installed | ||
run: | | ||
if ! command -v draft &> /dev/null | ||
then | ||
echo "draft could not be found" | ||
exit 1 | ||
fi | ||
- name: Validate Draft Command Runs | ||
run: draft -h |
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