Skip to content

Commit

Permalink
Fix CI execution and run in Fedora latest
Browse files Browse the repository at this point in the history
Resolves: #5

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi committed Oct 4, 2023
1 parent 26750cc commit 83b9020
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/run_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,25 @@ on:
workflow_dispatch:

jobs:
deploy:
test-execution:
runs-on: ubuntu-latest

strategy:
matrix:
os:
- fedora:latest

container:
image: ${{matrix.os}}
env:
DISTRO: ${{matrix.os}}
run:
set -eu
echo "DISTRO:${DISTRO}"

steps:
- name: Checkout
uses: actions/checkout@vmaster
uses: actions/checkout@master

- name: Minikube Installation
id: minikube
Expand All @@ -38,7 +52,7 @@ jobs:
- name: Run test
run: |
tree; make
pushd Sanity; make
9 changes: 7 additions & 2 deletions .github/workflows/scripts/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
COMMON="git file tree make"
COMMON="git file tree make clamav clamav-freshclam helm"
COMMAND_CHECK="kubectl clamscan helm"

case "${DISTRO}" in
debian:*|ubuntu:*)
Expand All @@ -32,7 +33,7 @@ debian:*|ubuntu:*)
# We get some errors once in a while, so let's try a few times.
for i in 1 2 3; do
apt -y install ${COMMON} ${DEBIAN_UBUNTU} && break
sleep 1
sleep ${i}
done
;;
fedora:*|*centos:*)
Expand All @@ -47,3 +48,7 @@ echo "================= SYSTEM ================="
cat /etc/os-release
uname -a
echo "=========================================="

for command in "${COMMAND_CHECK}"; do
command -v "${command}"
done

0 comments on commit 83b9020

Please sign in to comment.