Unverified Commit a2ae6b95 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

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

parent 6482b47e
...@@ -107,10 +107,12 @@ jobs: ...@@ -107,10 +107,12 @@ jobs:
docker_img="${docker_img}-ubuntu$(lsb_release -rs)" docker_img="${docker_img}-ubuntu$(lsb_release -rs)"
fi 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 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: all-cuda-jobs-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert if: always()
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [test] needs: [test]
steps: steps:
- name: Note that all tests succeeded - name: Note that all tests succeeded
run: echo "🎉" uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}
...@@ -7,7 +7,7 @@ on: ...@@ -7,7 +7,7 @@ on:
- release/* - release/*
jobs: jobs:
all-successful: all-optional-checks-successful:
timeout-minutes: 120 timeout-minutes: 120
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
......
...@@ -71,10 +71,12 @@ jobs: ...@@ -71,10 +71,12 @@ jobs:
export PATH=${CONDA}/bin:${PATH} export PATH=${CONDA}/bin:${PATH}
$GITHUB_WORKSPACE/.ci/setup.sh || exit -1 $GITHUB_WORKSPACE/.ci/setup.sh || exit -1
$GITHUB_WORKSPACE/.ci/test.sh || exit -1 $GITHUB_WORKSPACE/.ci/test.sh || exit -1
all-successful: all-python-package-jobs-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert if: always()
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [test] needs: [test]
steps: steps:
- name: Note that all tests succeeded - name: Note that all tests succeeded
run: echo "🎉" uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}
...@@ -246,10 +246,12 @@ jobs: ...@@ -246,10 +246,12 @@ jobs:
echo "NOTEs, WARNINGs, or ERRORs have been found by R CMD check" echo "NOTEs, WARNINGs, or ERRORs have been found by R CMD check"
exit -1 exit -1
fi fi
all-successful: all-r-package-jobs-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert if: always()
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
needs: [test, test-r-sanitizers, test-r-debian-clang] needs: [test, test-r-sanitizers, test-r-debian-clang]
steps: steps:
- name: Note that all tests succeeded - name: Note that all tests succeeded
run: echo "🎉" uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}
...@@ -80,10 +80,12 @@ jobs: ...@@ -80,10 +80,12 @@ jobs:
echo "" echo ""
exit -1 exit -1
fi fi
all-successful: all-static-analysis-jobs-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert if: always()
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
needs: [test, r-check-docs] needs: [test, r-check-docs]
steps: steps:
- name: Note that all tests succeeded - name: Note that all tests succeeded
run: echo "🎉" uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment