Skip to content

Commit

Permalink
Merge pull request #2804 from cdr/jsjoeio-fix-ci-linux
Browse files Browse the repository at this point in the history
fix(ci): add step to remove docker images on linux-arm64
  • Loading branch information
jsjoeio authored Mar 2, 2021
2 parents 3e081ea + 90807e1 commit d48a74c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
with:
name: test-videos
path: ./test/videos
- name: Remove release packages and test artifacts
run: rm -rf ./release-packages ./test/videos

release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -102,6 +104,8 @@ jobs:
with:
name: release-packages
path: ./release-packages
- name: Remove docker images
run: docker system prune -af

macos-amd64:
needs: release
Expand Down
7 changes: 4 additions & 3 deletions ci/build/test-standalone-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ main() {

echo "Testing standalone release."

./release-standalone/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --install-extension ms-python.python
# Note: using a basic theme extension because it doesn't update often and is more reliable for testing
./release-standalone/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --install-extension wesbos.theme-cobalt2
local installed_extensions
installed_extensions="$(./release-standalone/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --list-extensions 2>&1)"
# We use grep as ms-python.python may have dependency extensions that change.
if ! echo "$installed_extensions" | grep -q "ms-python.python"; then
# We use grep as wesbos.theme-cobalt2 may have dependency extensions that change.
if ! echo "$installed_extensions" | grep -q "wesbos.theme-cobalt2"; then
echo "Unexpected output from listing extensions:"
echo "$installed_extensions"
exit 1
Expand Down

0 comments on commit d48a74c

Please sign in to comment.