Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Test Formulae

on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -50,9 +53,12 @@ jobs:
fi

for formula in "${formulae[@]}"; do
formula_name="${formula##*/}"
formula_name="${formula_name%.rb}"

brew style "$formula"
brew audit --new --online "$formula"
brew install --build-from-source "$formula"
brew test "$formula"
brew uninstall "$formula"
brew audit --new --online "$formula_name"
brew install --build-from-source "$formula_name"
brew test "$formula_name"
brew uninstall "$formula_name"
done
1 change: 1 addition & 0 deletions Formula/bashly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Bashly < Formula
sha256 "9aa5506309be17ecc970a9bb26045426853aa37f78b5d582148ddb39b9c3b3a8"
license "MIT"

depends_on "bash"
depends_on "ruby"

resource "colsole" do
Expand Down
3 changes: 3 additions & 0 deletions gembrew/bashly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ desc: Bash command-line framework and CLI generator
homepage: https://bashly.dev
repository: bashly-framework/homebrew-tap

dependencies:
- bash

test: |-
system bin/"bashly", "init", "--minimal"
system bin/"bashly", "generate"
Expand Down
Loading