diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..5afc429 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,11 @@ +name: test +on: [push] + +jobs: + coder_cli: + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + - run: brew install --build-from-source ./coder.rb + - run: coder --version + diff --git a/README.md b/README.md new file mode 100644 index 0000000..65d1b4d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Homebrew Coder Tap + +A Homebrew Tap for Coder related utilities and applications. diff --git a/coder.rb b/coder.rb new file mode 100644 index 0000000..c53ecf7 --- /dev/null +++ b/coder.rb @@ -0,0 +1,14 @@ +class Coder < Formula + desc "A command-line tool for the Coder remote development platform" + homepage "https://github.com/cdr/coder-cli" + url "https://github.com/cdr/coder-cli/releases/download/v1.14.2/coder-cli-darwin-amd64.zip" + version "v1.14.2" + sha256 "69b69497a75ce19851681974aa7561af7c7061357f8616e24446e58795bf6e1f" + bottle :unneeded + def install + bin.install "coder" + end + test do + system "#{bin}/coder", "--version" + end +end