forked from rook/rook
test: add xtrace for github action shells
For all Rook-maintained GH actions, use a default shell that has xtrace enabled to help debug any errors. Enable xtrace on all actions except these that use only external tools: - codespell - commitlint (wagoid/commitlint) - golangci-lint - helm-lint (chart-testing) - stale - yamllint Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
This commit is contained in:
@@ -2,6 +2,11 @@ name: Builds
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
macos-build:
|
||||
runs-on: macos-10.15
|
||||
@@ -69,4 +74,4 @@ jobs:
|
||||
|
||||
- name: setup tmate session for debugging
|
||||
if: failure()
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
|
||||
@@ -3,6 +3,11 @@ on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # every day at midnight
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
canary-arm64:
|
||||
runs-on: [self-hosted, ubuntu-20.04, ARM64]
|
||||
|
||||
@@ -11,6 +11,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
canary:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
@@ -11,6 +11,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
codegen:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
@@ -11,6 +11,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
crds-gen:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
@@ -4,6 +4,12 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCassandraSuite:
|
||||
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && contains(github.event.pull_request.labels.*.name, 'cassandra')}}
|
||||
|
||||
@@ -5,6 +5,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCephFlexSuite:
|
||||
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
|
||||
|
||||
@@ -5,6 +5,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCephHelmSuite:
|
||||
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
|
||||
|
||||
@@ -2,6 +2,11 @@ name: Integration test CephMgrSuite
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCephMgrSuite:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
@@ -5,6 +5,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCephMultiClusterDeploySuite:
|
||||
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
|
||||
|
||||
@@ -4,6 +4,12 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestNfsSuite:
|
||||
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && contains(github.event.pull_request.labels.*.name, 'nfs')}}
|
||||
|
||||
@@ -5,6 +5,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCephSmokeSuite:
|
||||
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
|
||||
|
||||
@@ -5,6 +5,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCephUpgradeSuite:
|
||||
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
|
||||
|
||||
@@ -7,6 +7,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
TestCephFlexSuite:
|
||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/release-*'
|
||||
@@ -358,4 +363,3 @@ jobs:
|
||||
- name: setup tmate session for debugging
|
||||
if: failure()
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
|
||||
|
||||
@@ -11,6 +11,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
modcheck:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
@@ -3,6 +3,12 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
push-image-to-container-registry:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
@@ -11,6 +11,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
jobs:
|
||||
unittests:
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -28,4 +33,3 @@ jobs:
|
||||
- name: run unit tests
|
||||
working-directory: /home/runner/go/src/github.com/rook/rook
|
||||
run: GOPATH=$(go env GOPATH) make -j $(nproc) test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user