From cacc823724d9b7447c9747cd19d007565fc1f520 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 16 Feb 2022 13:45:40 -0800 Subject: [PATCH] ci: add call to check-config.sh This is done to make sure the script is working correctly in different environments (distro and kernel versions). In addition, we can see in test logs which kernel features are enabled. Note that I didn't want to have a separate job for GHA CI, so I just added this to the end of shellcheck one. Signed-off-by: Kir Kolyshkin --- .cirrus.yml | 4 ++++ .github/workflows/validate.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index f72637a39..e2e7a3dc4 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -51,6 +51,8 @@ task: vagrant ssh-config >> /root/.ssh/config guest_info_script: | ssh default 'sh -exc "uname -a && systemctl --version && df -T && cat /etc/os-release && go version"' + check_config_script: | + ssh default /vagrant/script/check-config.sh unit_tests_script: | ssh default 'sudo -i make -C /vagrant localunittest' integration_systemd_script: | @@ -144,6 +146,8 @@ task: df -T echo "-----" systemctl --version + check_config_script: | + /home/runc/script/check-config.sh unit_tests_script: | ssh -tt localhost "make -C /home/runc localunittest" integration_systemd_script: | diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c21efd3da..20facee12 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -118,6 +118,8 @@ jobs: - name: shellcheck run: | make shellcheck + - name: check-config.sh + run : ./script/check-config.sh deps: runs-on: ubuntu-20.04