Skip to content

fix: installer tests #5578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
- main
paths:
- "install.sh"
- ".github/workflows/installer.yaml"
pull_request:
branches:
- main
paths:
- "install.sh"
- ".github/workflows/installer.yaml"

# Cancel in-progress runs for pull requests when developers push
# additional changes, and serialize builds in branches.
Expand All @@ -33,8 +35,8 @@ jobs:
- name: Install code-server
run: ./install.sh

- name: Test code-server
run: CODE_SERVER_PATH="code-server" yarn test:integration
- name: Test code-server was installed globally
run: code-server --help

alpine:
name: Test installer on Alpine
Expand All @@ -54,6 +56,11 @@ jobs:
- name: Test standalone to a non-existent prefix
run: su coder -c "./install.sh --method standalone --prefix /tmp/does/not/yet/exist"

# We do not actually have Alpine standalone builds so running code-server
# will not work.
- name: Test code-server was installed to prefix
run: test -f /tmp/does/not/yet/exist/bin/code-server

macos:
name: Test installer on macOS
runs-on: macos-latest
Expand All @@ -65,5 +72,5 @@ jobs:
- name: Install code-server
run: ./install.sh

- name: Test code-server
run: CODE_SERVER_PATH="code-server" yarn test:integration
- name: Test code-server was installed globally
run: code-server --help