-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2a8889
commit d0da956
Showing
9 changed files
with
160 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
# 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 Multinode | ||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
paths: | ||
- '**.sh' | ||
- '!ci/update_*.sh' | ||
- '*.yml' | ||
- '!playbooks/**/*.yml' | ||
- '*.tpl' | ||
- '*.env' | ||
- 'resources/*' | ||
- '!**.md' | ||
pull_request_review: | ||
types: | ||
- submitted | ||
paths: | ||
- '**.sh' | ||
- '!ci/update_*.sh' | ||
- '*.yml' | ||
- '!playbooks/**/*.yml' | ||
- '*.tpl' | ||
- '*.env' | ||
- 'resources/*' | ||
- '!**.md' | ||
|
||
jobs: | ||
check-noha: | ||
name: Check Ubuntu Bionic No High Availability setup | ||
if: >- | ||
( | ||
github.event_name == 'pull_request_review' && | ||
github.event.review.state == 'approved' | ||
) || | ||
github.event_name != 'pull_request_review' | ||
runs-on: macos-10.15 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Vagrant boxes | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.vagrant.d/boxes | ||
key: ${{ runner.os }}-vagrant-ubuntu-bionic-${{ hashFiles('distros_supported.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-vagrant-ubuntu-bionic- | ||
- name: Replace shorten links | ||
run: | | ||
find . -type f -iname "*sh" -exec sed -i '.bak' 's|http://bit.ly/install_pkg|https://raw.githubusercontent.com/electrocucaracha/pkg-mgr_scripts/master/install.sh|g' {} \; | ||
find . -type f -iname "*sh" -exec sed -i '.bak' 's|http://bit.ly/install_bin|https://raw.githubusercontent.com/electrocucaracha/pkg-mgr_scripts/master/bindep_install.sh|g' {} \; | ||
find . -type f -name "*.bak" -delete | ||
- name: Run integration tests | ||
env: | ||
VAGRANT_DISABLE_VBOXSYMLINKCREATE: 1 | ||
KRD_CERT_MANAGER_ENABLED: false | ||
KRD_INGRESS_NGINX_ENABLED: false | ||
TEST_MULTINODE: true | ||
run: | | ||
cd ci | ||
./bootstrap.sh | ||
./provision_installer.sh | ||
./check.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
# 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 Runtime Classes | ||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
paths: | ||
- '**.sh' | ||
- '!ci/update_*.sh' | ||
- '*.yml' | ||
- '!playbooks/**/*.yml' | ||
- '*.tpl' | ||
- '*.env' | ||
- 'resources/*' | ||
- '!**.md' | ||
pull_request_review: | ||
types: | ||
- submitted | ||
paths: | ||
- '**.sh' | ||
- '!ci/update_*.sh' | ||
- '*.yml' | ||
- '!playbooks/**/*.yml' | ||
- '*.tpl' | ||
- '*.env' | ||
- 'resources/*' | ||
- '!**.md' | ||
|
||
jobs: | ||
check-runtimeclasses: | ||
name: Check Container Runtime Classes 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-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- runtime: crio | ||
- runtime: containerd | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Deploy services | ||
env: | ||
KRD_CONTAINER_RUNTIME: ${{ matrix.runtime }} | ||
KRD_CERT_MANAGER_ENABLED: false | ||
KRD_INGRESS_NGINX_ENABLED: false | ||
KRD_KATA_CONTAINERS_ENABLED: true | ||
KRD_CRUN_ENABLED: true | ||
KRD_GVISOR_ENABLED: true | ||
run: KRD_FOLDER=$(git rev-parse --show-toplevel) ./aio.sh | ||
- name: Run Multus tests | ||
run: cd tests; ./multus.sh | ||
- name: Undeploy services | ||
run: ./krd_command.sh -a uninstall_k8s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters