diff --git a/.github/workflows/base-test.yml b/.github/workflows/base-test.yml index 50fb9b44a3..db88506663 100644 --- a/.github/workflows/base-test.yml +++ b/.github/workflows/base-test.yml @@ -1,7 +1,7 @@ name: Base Tests on: - push: + workflow_call: jobs: test: diff --git a/.github/workflows/build-no-proxy.yml b/.github/workflows/build-no-proxy.yml index 6d47631969..959bbfaa3e 100644 --- a/.github/workflows/build-no-proxy.yml +++ b/.github/workflows/build-no-proxy.yml @@ -1,7 +1,7 @@ name: Build Without Go Proxy on: - push: + workflow_call: jobs: build-no-proxy: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index edcdeebcc6..a417272f29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: Build on: - push: + workflow_call: jobs: build: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..d379107a57 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,62 @@ +name: CI + +on: + push: + +jobs: + lint: + uses: ./.github/workflows/lint.yml + secrets: inherit + + precommit: + uses: ./.github/workflows/precommit.yml + secrets: inherit + + codespell: + uses: ./.github/workflows/codespell.yml + secrets: inherit + + markdownlint: + uses: ./.github/workflows/markdownlint.yml + secrets: inherit + + license_check: + uses: ./.github/workflows/license-check.yml + secrets: inherit + + base_tests: + needs: [lint, precommit, codespell, markdownlint, license_check] + uses: ./.github/workflows/base-test.yml + permissions: + contents: read + checks: write + secrets: inherit + + build: + needs: [lint, precommit, codespell, markdownlint, license_check] + uses: ./.github/workflows/build.yml + secrets: inherit + + build_no_proxy: + needs: [lint, precommit, codespell, markdownlint, license_check] + uses: ./.github/workflows/build-no-proxy.yml + secrets: inherit + + integration_tests: + needs: [base_tests, build, build_no_proxy] + uses: ./.github/workflows/integration-test.yml + permissions: + contents: read + checks: write + secrets: inherit + + oidc_integration_tests: + needs: [base_tests, build, build_no_proxy] + uses: ./.github/workflows/oidc-integration-test.yml + permissions: + id-token: write + contents: read + checks: write + secrets: inherit + + diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 8f690ca19d..d90327ac7a 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -1,7 +1,7 @@ name: Codespell on: - push: + workflow_call: jobs: codespell: diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 6d5f6592d7..cff8eeb305 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -1,7 +1,7 @@ name: Integration Tests on: - push: + workflow_call: jobs: test: diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index 68fbae0b7d..7e35edcaa1 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -1,7 +1,7 @@ name: License Check on: - push: + workflow_call: jobs: license-check: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6c73cfaf69..3dafc26f10 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,7 @@ name: Lint on: - push: + workflow_call: jobs: lint: diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index 5572479858..1ebd6718eb 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -1,7 +1,7 @@ name: Markdown Lint on: - push: + workflow_call: jobs: markdownlint: diff --git a/.github/workflows/oidc-integration-test.yml b/.github/workflows/oidc-integration-test.yml index a82a70e653..2999afe10a 100644 --- a/.github/workflows/oidc-integration-test.yml +++ b/.github/workflows/oidc-integration-test.yml @@ -5,7 +5,7 @@ name: OIDC Integration Tests on: - push: + workflow_call: permissions: id-token: write diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 4ff17df1ed..32dd7094b1 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -1,7 +1,7 @@ name: Pre-commit on: - push: + workflow_call: jobs: precommit: