diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8adf4f708..7ee3912f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file + uses: mxschmitt/action-tmate@v3 diff --git a/.github/workflows/canary-integration-test-arm64.yml b/.github/workflows/canary-integration-test-arm64.yml index 5d3f0dce6..1281b5268 100644 --- a/.github/workflows/canary-integration-test-arm64.yml +++ b/.github/workflows/canary-integration-test-arm64.yml @@ -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] diff --git a/.github/workflows/canary-integration-test.yml b/.github/workflows/canary-integration-test.yml index 794ed999c..bf48cbbe6 100644 --- a/.github/workflows/canary-integration-test.yml +++ b/.github/workflows/canary-integration-test.yml @@ -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 diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index e529d34fd..3cd1ea884 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -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 diff --git a/.github/workflows/crds-gen.yml b/.github/workflows/crds-gen.yml index 7564649dd..199767cb7 100644 --- a/.github/workflows/crds-gen.yml +++ b/.github/workflows/crds-gen.yml @@ -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 diff --git a/.github/workflows/integration-test-cassandra-suite.yaml b/.github/workflows/integration-test-cassandra-suite.yaml index 6558577e8..72dcb3e59 100644 --- a/.github/workflows/integration-test-cassandra-suite.yaml +++ b/.github/workflows/integration-test-cassandra-suite.yaml @@ -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')}} diff --git a/.github/workflows/integration-test-flex-suite.yaml b/.github/workflows/integration-test-flex-suite.yaml index 7799841df..a6bb51e8d 100644 --- a/.github/workflows/integration-test-flex-suite.yaml +++ b/.github/workflows/integration-test-flex-suite.yaml @@ -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') }} diff --git a/.github/workflows/integration-test-helm-suite.yaml b/.github/workflows/integration-test-helm-suite.yaml index eb129f7e1..554ec8c87 100644 --- a/.github/workflows/integration-test-helm-suite.yaml +++ b/.github/workflows/integration-test-helm-suite.yaml @@ -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') }} diff --git a/.github/workflows/integration-test-mgr-suite.yaml b/.github/workflows/integration-test-mgr-suite.yaml index aaaaa3158..49f4dfa2d 100644 --- a/.github/workflows/integration-test-mgr-suite.yaml +++ b/.github/workflows/integration-test-mgr-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-multi-cluster-suite.yaml b/.github/workflows/integration-test-multi-cluster-suite.yaml index 948e08593..3fb39d847 100644 --- a/.github/workflows/integration-test-multi-cluster-suite.yaml +++ b/.github/workflows/integration-test-multi-cluster-suite.yaml @@ -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') }} diff --git a/.github/workflows/integration-test-nfs-suite.yaml b/.github/workflows/integration-test-nfs-suite.yaml index 20138beb4..a9502381d 100644 --- a/.github/workflows/integration-test-nfs-suite.yaml +++ b/.github/workflows/integration-test-nfs-suite.yaml @@ -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')}} diff --git a/.github/workflows/integration-test-smoke-suite.yaml b/.github/workflows/integration-test-smoke-suite.yaml index db5d59d1a..5bac5d4fc 100644 --- a/.github/workflows/integration-test-smoke-suite.yaml +++ b/.github/workflows/integration-test-smoke-suite.yaml @@ -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') }} diff --git a/.github/workflows/integration-test-upgrade-suite.yaml b/.github/workflows/integration-test-upgrade-suite.yaml index 46bbe91b1..bde0dbaf4 100644 --- a/.github/workflows/integration-test-upgrade-suite.yaml +++ b/.github/workflows/integration-test-upgrade-suite.yaml @@ -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') }} diff --git a/.github/workflows/integration-tests-on-release.yaml b/.github/workflows/integration-tests-on-release.yaml index c6bdf4107..d7d44ab03 100644 --- a/.github/workflows/integration-tests-on-release.yaml +++ b/.github/workflows/integration-tests-on-release.yaml @@ -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 - diff --git a/.github/workflows/mod-check.yml b/.github/workflows/mod-check.yml index d5cedb95f..a31920d23 100644 --- a/.github/workflows/mod-check.yml +++ b/.github/workflows/mod-check.yml @@ -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 diff --git a/.github/workflows/push-build.yaml b/.github/workflows/push-build.yaml index 281097d93..f13aae106 100644 --- a/.github/workflows/push-build.yaml +++ b/.github/workflows/push-build.yaml @@ -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 diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 884c40359..a82c6906c 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -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 -