Skip to content

Commit 3631fc1

Browse files
authored
try it
1 parent 7ccb948 commit 3631fc1

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/test-action.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ jobs:
4444
code-server-version: "4.15.0"
4545
- run: command -V code-server
4646
- run: code-server --version
47-
# demo-server:
48-
# runs-on: ubuntu-latest
49-
# steps:
50-
# - uses: actions/checkout@v3
51-
# - uses: ./
52-
# - uses: cidebug/setup-cloudflare-tunnel@v1
53-
# - run: |
54-
# code-server --auth none --bind-addr 0.0.0.0:4000 &
55-
# cloudflared tunnel --url http://localhost:4000 &
56-
# sleep 500
57-
# kill 0
47+
start-code-server:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v3
51+
- uses: ./
52+
- uses: ttyci/setup-cloudflared@v1
53+
- run: nohup code-server --auth none --bind-addr 0.0.0.0:4000 &
54+
- run: nohup cloudflared tunnel --url http://localhost:4000 &
55+
- run: sleep 5m

main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
set -ex
33

44
if [[ $RUNNER_OS == Windows ]]; then
5+
pushd "$(mktemp -d)"
56
export FORCE_NODE_VERSION=18
67
old_script_shell=$(npm config get script-shell)
78
npm config set script-shell 'C:\Program Files\Git\bin\bash.exe'
89
npm install --global "code-server@$INPUT_CODE_SERVER_VERSION" --unsafe-perm
910
npm config set script-shell "$old_script_shell"
11+
popd
1012
else
1113
if [[ $INPUT_CODE_SERVER_VERSION == latest ]]; then
1214
curl -fsSL https://code-server.dev/install.sh | sh -s -- \

0 commit comments

Comments
 (0)