Skip to content

Commit

Permalink
ci : Install virtiofsd package while installing deps for crc
Browse files Browse the repository at this point in the history
+ Somehow GitHub Action runner now no longer contains virtiofsd package
  installed. Install it explicitly to fix crc start failure
+ Enable pull_request trigger to verify CRC is working on github actions

Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohanKanojia committed Oct 15, 2024
1 parent bdc39a3 commit e885cac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/e2e-crc-okd-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ name: JKube E2E Tests (CRC-OKD)

on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 4 * * *' # Every day at 4am

Expand Down Expand Up @@ -65,7 +66,7 @@ jobs:
- name: Install required virtualization software
run: |
sudo apt-get update
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system virtiofsd
sudo usermod -a -G libvirt $USER
- name: Remove unwanted stuff to free up disk image
run: |
Expand Down Expand Up @@ -96,12 +97,6 @@ jobs:
sudo -su $USER crc setup
- name: Start the crc
run: sudo -su $USER crc start
- name: Login into OpenShift Cluster
run: |
sudo -su $USER eval $(crc oc-env)
sudo -su $USER oc version
LOGIN_COMMAND=`sudo -su $USER crc console --credentials | grep admin | awk -F"'" '$0=$2'`
eval $LOGIN_COMMAND
- name: Install and Run Integration Tests
run: |
JKUBE_VERSION=$(./mvnw -q -f 'jkube/pom.xml' -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) \
Expand Down

0 comments on commit e885cac

Please sign in to comment.