File tree 3 files changed +72
-0
lines changed
3 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+ branches : ["**"]
8
+
9
+ jobs :
10
+ test :
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-22.04, macos-13]
14
+
15
+ runs-on : ${{ matrix.os }}
16
+
17
+ steps :
18
+ - name : Set up Homebrew
19
+ id : set-up-homebrew
20
+ uses : Homebrew/actions/setup-homebrew@master
21
+
22
+ - name : Cache Homebrew Bundler RubyGems
23
+ id : cache
24
+ uses : actions/cache@v3
25
+ with :
26
+ path : ${{ steps.set-up-homebrew.outputs.gems-path }}
27
+ key : ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
28
+ restore-keys : ${{ runner.os }}-rubygems-
29
+
30
+ - name : Install Homebrew Bundler RubyGems
31
+ if : steps.cache.outputs.cache-hit != 'true'
32
+ run : brew install-bundler-gems
33
+
34
+ - run : brew test-bot --only-cleanup-before
35
+
36
+ - run : brew test-bot --only-setup
37
+
38
+ - run : brew test-bot --only-tap-syntax
39
+
40
+ - run : brew test-bot --only-formulae
41
+ if : github.event_name == 'pull_request'
Original file line number Diff line number Diff line change
1
+ class Coder < Formula
2
+ desc "Provisions remote development environments via Terraform"
3
+ homepage "https://github.com/coder/coder"
4
+ version "2.1.4"
5
+
6
+ if OS . mac?
7
+ if Hardware ::CPU . arm?
8
+ url "https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_darwin_arm64.zip"
9
+ sha256 "ac67c032e81fed7ef3b2e1fc5bfafb878e7551c081d0a136f5a88583c279c060"
10
+ else
11
+ url "https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_darwin_amd64.zip"
12
+ sha256 "693d6c450891627d879123ea9a08dc5917dafee7de6c639c5c9b496abe6f250b"
13
+ end
14
+ else
15
+ url "https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_linux_amd64.tar.gz"
16
+ sha256 "41666bbe3afacd153fbe6c1a2d908bb4fb7a88e821205cb7136a0bad2d1cd6dc"
17
+ end
18
+
19
+ def install
20
+ bin . install "coder"
21
+ end
22
+ test do
23
+ version_output = shell_output ( "#{ bin } /coder version" )
24
+ assert_match version . to_s , version_output
25
+ refute_match "AGPL" , version_output
26
+ assert_match "Full build" , version_output
27
+
28
+ assert_match "You are not logged in" , shell_output ( "#{ bin } /coder netcheck 2>&1" , 1 )
29
+ assert_match "postgres://" , shell_output ( "#{ bin } /coder server postgres-builtin-url" )
30
+ end
31
+ end
File renamed without changes.
You can’t perform that action at this time.
0 commit comments