This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 53
53
uses : ./ci/image
54
54
with :
55
55
args : ./ci/steps/gendocs.sh
56
+ install-test :
57
+ runs-on : ubuntu-latest
58
+ steps :
59
+ - uses : actions/checkout@v1
60
+ - run : ./ci/steps/install_test.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # forked from https://github.com/denoland/deno_install/blob/master/install_test.sh
3
+
4
+ set -e
5
+
6
+ cd " $( dirname " $0 " ) "
7
+ cd ../../
8
+
9
+ # Lint.
10
+ shellcheck -s sh ./* .sh
11
+
12
+ # Test that we can install the latest version at the default location.
13
+ rm -f ~ /.coder/bin/coder
14
+ unset CODER_INSTALL
15
+ sh ./install.sh
16
+ ~ /.coder/bin/coder --version
17
+
18
+ # Test that we can install a specific version at a custom location.
19
+ rm -rf ~ /coder-1.12.2
20
+ export CODER_INSTALL=" $HOME /coder-1.12.2"
21
+ ./install.sh v1.12.2
22
+ ~ /coder-1.12.2/bin/coder --version | grep 1.12.2
23
+
24
+ # Test that we can install at a relative custom location.
25
+ export CODER_INSTALL=" ."
26
+ ./install.sh v1.12.2
27
+ bin/coder --version | grep 1.12.2
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
- echo " Linting..."
6
-
7
5
cd " $( dirname " $0 " ) "
8
6
cd ../../
9
7
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ # coder-cli installation helper script
3
+ # fork of https://github.com/denoland/deno_install
2
4
# TODO(everyone): Keep this script simple and easily auditable.
3
5
4
6
set -e
28
30
fi
29
31
30
32
version=${1:- " " }
31
- if [ " $version " == " " ]; then
33
+ if [ " $version " = " " ]; then
32
34
coder_asset_path=$(
33
35
curl -sSf https://github.com/cdr/coder-cli/releases |
34
36
grep -o " /cdr/coder-cli/releases/download/.*/coder-cli-${target}${extension} " |
You can’t perform that action at this time.
0 commit comments