File tree 7 files changed +62
-18
lines changed
7 files changed +62
-18
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,24 @@ name: ci
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
+ fmt :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v1
10
+ - name : Run ./ci/steps/fmt.sh
11
+ uses : ./ci/container
12
+ with :
13
+ args : ./ci/steps/fmt.sh
14
+
15
+ lint :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v1
19
+ - name : Run ./ci/steps/lint.sh
20
+ uses : ./ci/container
21
+ with :
22
+ args : ./ci/steps/lint.sh
23
+
6
24
test :
7
25
runs-on : ubuntu-latest
8
26
steps :
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ sudo systemctl enable --now code-server
38
38
``` bash
39
39
npm install -g code-server
40
40
code-server
41
+ # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
41
42
```
42
43
43
44
### macOS
@@ -48,19 +49,6 @@ brew service start code-server
48
49
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
49
50
```
50
51
51
- ### SSH
52
-
53
- You can use [ sshcode] ( https://github.com/codercom/sshcode ) to start and use code-server on any Linux machine over SSH.
54
-
55
- ``` bash
56
-
57
- # Downloads and installs code-server on dev.coder.com and opens it in a new browser window.
58
- ```
59
-
60
- ### Digital Ocean
61
-
62
- [ ![ Create a Droplet] ( ./doc/assets/droplet.svg )] ( https://marketplace.digitalocean.com/apps/code-server )
63
-
64
52
### Docker
65
53
66
54
``` bash
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ This directory contains scripts used for the development of code-server.
31
31
- [ ./dev/container] ( ./dev/container )
32
32
- See [ CONTRIBUTING.md] ( ../doc/CONTRIBUTING.md ) for docs on the development container
33
33
- [ ./dev/ci.sh] ( ./dev/ci.sh ) (` yarn ci ` )
34
- - Runs formatters, linters and tests
34
+ - Runs ` yarn fmt ` , ` yarn lint ` and ` yarn test `
35
35
- [ ./dev/fmt.sh] ( ./dev/fmt.sh ) (` yarn fmt ` )
36
36
- Runs formatters
37
37
- [ ./dev/lint.sh] ( ./dev/lint.sh ) (` yarn lint ` )
@@ -106,8 +106,12 @@ This directory contains the container for CI.
106
106
This directory contains a few scripts used in CI.
107
107
Just helps avoid clobbering the CI configuration.
108
108
109
+ - [ ./steps/fmt.sh] ( ./steps/fmt.sh )
110
+ - Runs ` yarn fmt ` after ensuring VS Code is patched
111
+ - [ ./steps/lint.sh] ( ./steps/lint.sh )
112
+ - Runs ` yarn lint ` after ensuring VS Code is patched
109
113
- [ ./steps/test.sh] ( ./steps/test.sh )
110
- - Runs ` yarn ci ` after ensuring VS Code is patched
114
+ - Runs ` yarn test ` after ensuring VS Code is patched
111
115
- [ ./steps/release.sh] ( ./steps/release.sh )
112
116
- Runs the full release process
113
117
- Generates the npm package at ` ./release `
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ release_nfpm() {
53
53
nfpm_config=$( envsubst < ./ci/build/nfpm.yaml)
54
54
55
55
# The underscores are convention for .deb.
56
- nfpm pkg -f <( echo " $nfpm_config " ) --target release-packages/code-server_" $VERSION_$ ARCH .deb"
57
- nfpm pkg -f <( echo " $nfpm_config " ) --target release-packages/code-server-" $VERSION -$ARCH .rpm"
56
+ nfpm pkg -f <( echo " $nfpm_config " ) --target " release-packages/code-server_${VERSION} _ ${ ARCH} .deb"
57
+ nfpm pkg -f <( echo " $nfpm_config " ) --target " release-packages/code-server-$VERSION -$ARCH .rpm"
58
58
}
59
59
60
60
main " $@ "
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ main () {
5
+ cd " $( dirname " $0 " ) /../.."
6
+
7
+ yarn
8
+
9
+ git submodule update --init
10
+ # We do not `yarn vscode` to make test.sh faster.
11
+ # If the patch fails to apply, then it's likely already applied
12
+ yarn vscode:patch & > /dev/null || true
13
+
14
+ yarn fmt
15
+ }
16
+
17
+ main " $@ "
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ main () {
5
+ cd " $( dirname " $0 " ) /../.."
6
+
7
+ yarn
8
+
9
+ git submodule update --init
10
+ # We do not `yarn vscode` to make test.sh faster.
11
+ # If the patch fails to apply, then it's likely already applied
12
+ yarn vscode:patch & > /dev/null || true
13
+
14
+ yarn lint
15
+ }
16
+
17
+ main " $@ "
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ main() {
11
11
# If the patch fails to apply, then it's likely already applied
12
12
yarn vscode:patch & > /dev/null || true
13
13
14
- yarn ci
14
+ yarn test
15
15
}
16
16
17
17
main " $@ "
You can’t perform that action at this time.
0 commit comments