Skip to content

Fix bash linting issues #262

Fix bash linting issues

Fix bash linting issues #262

---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2021
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
name: Check Multus CNI
# yamllint disable-line rule:truthy
on:
push:
paths:
- "**.sh"
- "!ci/update_*.sh"
- "*.yml"
- "!playbooks/**/*.yml"
- "*.tpl"
- "*.env"
- "resources/*"
- "!**.md"
pull_request_review:
types:
- submitted
jobs:
check-multus:
name: Check Multus CNI in an Ubuntu Focal All-in-One setup
if: >-
( github.event_name == 'pull_request_review' && github.event.review.state == 'approved' ) || github.event_name != 'pull_request_review'
runs-on: ubuntu-22.04
env:
KRD_DEBUG: true
KRD_ANSIBLE_DEBUG: true
KRD_MULTUS_ENABLED: true
PKG_KREW_PLUGINS_LIST: "cert-manager"
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Deploy services
run: KRD_FOLDER=$(git rev-parse --show-toplevel) ./aio.sh
- name: Run Sonobuoy tool
run: ./krd_command.sh -a run_sonobuoy
- name: Run Kubent tool
run: ./krd_command.sh -a run_kubent
- name: Run Multus tests
working-directory: ./tests
run: ./multus.sh
- name: Undeploy services
run: ./krd_command.sh -a uninstall_k8s