Skip to content

Commit

Permalink
gsts: Fix GitHub workflows (#1)
Browse files Browse the repository at this point in the history
Make the GitHub workflows happy with the gsts Formula.
  • Loading branch information
kalbasit authored Jun 26, 2024
1 parent 67eb0d6 commit 0c97683
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions Formula/gsts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,32 @@
class Gsts < Formula
desc "Obtain and store AWS STS credentials by authenticating via G Suite SAML"
homepage "https://github.com/ruimarinho/gsts"
url "https://github.com/ruimarinho/gsts/archive/v5.0.4.tar.gz"
url "https://github.com/ruimarinho/gsts/archive/refs/tags/v5.0.4.tar.gz"
sha256 "1ba1b5dca60cb59c984a6c49ad8a87e658eec00d296109c5bf5fb2b2e7b810a8"
license "MIT"

depends_on "node"

# https://github.com/ruimarinho/gsts/pull/111
patch do
url "https://github.com/ruimarinho/gsts/commit/f2dfea1e0f3f7c439988b781e861d5ecf1dd9bbb.patch?full_index=1"
sha256 "948fe5540006f570403c93d19af44c2ec2b311800804eb5a3b9a3cdb7dd081c2"
end
patch do
url "https://github.com/ruimarinho/gsts/commit/668f85ca097b20268382ff8c90ab30fdfd74a28d.patch?full_index=1"
sha256 "fc20c1f569bf50a15083f8cecf6000b87ccb3909035739dce9e5933bb9d29476"
end

# https://github.com/ruimarinho/gsts/pull/114
patch do
url "https://github.com/ruimarinho/gsts/commit/27250e5c25aaf78998abbc4ad5909d839dd85f18.patch?full_index=1"
sha256 "c0c94f809d92a2760ac3db5f6de25b3c3156c1fda4a131f224793a87d42f0f79"
end
patch do
url "https://github.com/ruimarinho/gsts/commit/3ccd2953ede583cab2aa7eca1a0d4b7aa349bb2f.patch?full_index=1"
sha256 "1eaa2fa318f227fde1dd0ec6c9dbe72269867b3bc485b3c270f4be622e575037"
end

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
(bin/"gsts").write_env_script libexec/"lib/node_modules/gsts/index.js", PLAYWRIGHT_BROWSERS_PATH: "0"
Expand All @@ -20,16 +40,6 @@ def post_install
system "#{Formula["node"].bin}/node", "#{libexec}/lib/node_modules/gsts/node_modules/playwright/cli.js", "install"
end

patch do
url "https://github.com/ruimarinho/gsts/pull/111.patch"
sha256 "5c5d3104aa195e083a0e4cbba5fe67adce1990f704e79246e8f4c70548c2945b"
end

patch do
url "https://github.com/ruimarinho/gsts/pull/114.patch"
sha256 "8d21a09a12047d0db858f455703c69dc9d44b324a8b6288527f991c0f1fc806d"
end

test do
assert_match version.to_s, shell_output("#{bin}/gsts --version")
end
Expand Down

0 comments on commit 0c97683

Please sign in to comment.