2021-07-02 20:18:37 +02:00
|
|
|
name: Installer integration
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
2021-10-29 21:48:21 +02:00
|
|
|
- "install.sh"
|
2021-07-02 20:18:37 +02:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-10-29 21:48:21 +02:00
|
|
|
paths:
|
|
|
|
- "install.sh"
|
2021-07-02 20:18:37 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ubuntu:
|
|
|
|
name: Test installer on Ubuntu
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install code-server
|
|
|
|
run: ./install.sh
|
|
|
|
|
|
|
|
- name: Test code-server
|
|
|
|
run: yarn test:standalone-release code-server
|
|
|
|
|
2021-07-03 02:19:23 +02:00
|
|
|
alpine:
|
|
|
|
name: Test installer on Alpine
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: "alpine:3.14"
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install curl
|
|
|
|
run: apk add curl
|
|
|
|
|
|
|
|
- name: Add user
|
|
|
|
run: adduser coder --disabled-password
|
|
|
|
|
|
|
|
# Standalone should work without root.
|
|
|
|
- name: Test standalone to a non-existent prefix
|
|
|
|
run: su coder -c "./install.sh --method standalone --prefix /tmp/does/not/yet/exist"
|
|
|
|
|
2021-07-02 20:18:37 +02:00
|
|
|
macos:
|
|
|
|
name: Test installer on macOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install code-server
|
|
|
|
run: ./install.sh
|
|
|
|
|
|
|
|
- name: Test code-server
|
|
|
|
run: yarn test:standalone-release code-server
|