Crew update should exit if it fails (#8909)

* make failed crew update cause non-zero errorstatus, update github action

* bump version

* adjust github action

* adjust github action

* intentionally break crew update

* fix crew update

* Add remove package to github action
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2023-11-08 10:19:08 -05:00
committed by GitHub
parent 64cbad2c93
commit 2b946f5561
3 changed files with 7 additions and 6 deletions

View File

@@ -16,8 +16,9 @@ jobs:
- name: Unit Tests
run: |
sudo docker run -t satmandu/crewbuild:amd64 sudo -i -u chronos /bin/bash -c "
echo \"CREW_REPO is ${{ github.actor }}\" && \
echo \"CREW_REPO is ${{ github.event.pull_request.head.repo.clone_url }}\" && \
echo \"CREW_BRANCH is ${{ github.head_ref }}\" && \
CREW_REPO=https://github.com/${{ github.actor }}/chromebrew.git CREW_BRANCH=${{ github.head_ref }} crew update && \
CREW_REPO=${{ github.event.pull_request.head.repo.clone_url }} CREW_BRANCH=${{ github.head_ref }} crew update && \
yes | crew upgrade && \
yes | crew install vim"
yes | crew install vim && \
yes | crew remove vim"