From 7e98628167c7030d68fd00767df70269a77ed5c9 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 22 Sep 2022 19:15:26 -0500 Subject: [PATCH] fix: installer tests (#5578) Also rename from yml to yaml. --- .../workflows/{installer.yml => installer.yaml} | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) rename .github/workflows/{installer.yml => installer.yaml} (75%) diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yaml similarity index 75% rename from .github/workflows/installer.yml rename to .github/workflows/installer.yaml index 16c7a3a0..b1129ef5 100644 --- a/.github/workflows/installer.yml +++ b/.github/workflows/installer.yaml @@ -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. @@ -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 @@ -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 @@ -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