mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 11:58:16 +00:00
Merge pull request #8682 from cmaf/static-checks-update-loc
ci: Use static checks from kata repo for lib functions
This commit is contained in:
commit
312475508a
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
||||||
|
export kata_repo="github.com/kata-containers/kata-containers"
|
||||||
|
export kata_repo_dir="$GOPATH/src/$kata_repo"
|
||||||
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
|
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
|
||||||
export tests_repo_dir="$GOPATH/src/$tests_repo"
|
export tests_repo_dir="$GOPATH/src/$tests_repo"
|
||||||
export branch="${target_branch:-main}"
|
export branch="${target_branch:-main}"
|
||||||
@ -39,20 +41,18 @@ clone_tests_repo()
|
|||||||
|
|
||||||
run_static_checks()
|
run_static_checks()
|
||||||
{
|
{
|
||||||
clone_tests_repo
|
|
||||||
# Make sure we have the targeting branch
|
# Make sure we have the targeting branch
|
||||||
git remote set-branches --add origin "${branch}"
|
git remote set-branches --add origin "${branch}"
|
||||||
git fetch -a
|
git fetch -a
|
||||||
bash "$tests_repo_dir/.ci/static-checks.sh" "$@"
|
bash "$kata_repo_dir/tests/static-checks.sh" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_docs_url_alive_check()
|
run_docs_url_alive_check()
|
||||||
{
|
{
|
||||||
clone_tests_repo
|
|
||||||
# Make sure we have the targeting branch
|
# Make sure we have the targeting branch
|
||||||
git remote set-branches --add origin "${branch}"
|
git remote set-branches --add origin "${branch}"
|
||||||
git fetch -a
|
git fetch -a
|
||||||
bash "$tests_repo_dir/.ci/static-checks.sh" --docs --all "github.com/kata-containers/kata-containers"
|
bash "$kata_repo_dir/tests/static-checks.sh" --docs --all "$kata_repo"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_get_pr_changed_file_details()
|
run_get_pr_changed_file_details()
|
||||||
|
@ -18,4 +18,4 @@ licensing and allows automated tooling to check the license of individual
|
|||||||
files.
|
files.
|
||||||
|
|
||||||
This SPDX licence identifier requirement is enforced by the
|
This SPDX licence identifier requirement is enforced by the
|
||||||
[CI (Continuous Integration) system](https://github.com/kata-containers/tests/blob/main/.ci/static-checks.sh).
|
[CI (Continuous Integration) system](https://github.com/kata-containers/kata-containers/blob/main/tests/static-checks.sh).
|
||||||
|
@ -213,7 +213,7 @@ If in doubt, look at the
|
|||||||
- As a non-privileged user.
|
- As a non-privileged user.
|
||||||
- As the `root` user (carefully!)
|
- As the `root` user (carefully!)
|
||||||
|
|
||||||
- Run the [static checker](https://github.com/kata-containers/tests/blob/main/.ci/static-checks.sh)
|
- Run the [static checker](https://github.com/kata-containers/kata-containers/blob/main/tests/static-checks.sh)
|
||||||
on your changes.
|
on your changes.
|
||||||
|
|
||||||
Checks formatting and many other things.
|
Checks formatting and many other things.
|
||||||
|
Loading…
Reference in New Issue
Block a user