[ci] make GitHub Actions branch protection stricter (fixes #5501) (#5645)

This commit is contained in:
James Lamb 2022-12-27 20:53:35 -06:00 коммит произвёл GitHub
Родитель 6482b47e9d
Коммит a2ae6b95fc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 23 добавлений и 15 удалений

8
.github/workflows/cuda.yml поставляемый
Просмотреть файл

@ -107,10 +107,12 @@ jobs:
docker_img="${docker_img}-ubuntu$(lsb_release -rs)"
fi
docker run --env-file docker.env -v "$GITHUB_WORKSPACE":"$ROOT_DOCKER_FOLDER" --rm --gpus all "$docker_img" /bin/bash $ROOT_DOCKER_FOLDER/docker-script.sh
all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
all-cuda-jobs-successful:
if: always()
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Note that all tests succeeded
run: echo "🎉"
uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}

2
.github/workflows/optional_checks.yml поставляемый
Просмотреть файл

@ -7,7 +7,7 @@ on:
- release/*
jobs:
all-successful:
all-optional-checks-successful:
timeout-minutes: 120
runs-on: ubuntu-22.04
steps:

8
.github/workflows/python_package.yml поставляемый
Просмотреть файл

@ -71,10 +71,12 @@ jobs:
export PATH=${CONDA}/bin:${PATH}
$GITHUB_WORKSPACE/.ci/setup.sh || exit -1
$GITHUB_WORKSPACE/.ci/test.sh || exit -1
all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
all-python-package-jobs-successful:
if: always()
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Note that all tests succeeded
run: echo "🎉"
uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}

10
.github/workflows/r_package.yml поставляемый
Просмотреть файл

@ -246,10 +246,12 @@ jobs:
echo "NOTEs, WARNINGs, or ERRORs have been found by R CMD check"
exit -1
fi
all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-22.04
all-r-package-jobs-successful:
if: always()
runs-on: ubuntu-latest
needs: [test, test-r-sanitizers, test-r-debian-clang]
steps:
- name: Note that all tests succeeded
run: echo "🎉"
uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}

10
.github/workflows/static_analysis.yml поставляемый
Просмотреть файл

@ -80,10 +80,12 @@ jobs:
echo ""
exit -1
fi
all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-22.04
all-static-analysis-jobs-successful:
if: always()
runs-on: ubuntu-latest
needs: [test, r-check-docs]
steps:
- name: Note that all tests succeeded
run: echo "🎉"
uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}