Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/run-on-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ jobs:
tests:
name: Tests
uses: ./.github/workflows/test.yml
secrets: inherit
# Named rather than inherited: this job runs the Go test suite, and so
# executes repository code and its dependency tree. It has no business
# holding the release signing keys.
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
codegen:
name: Codegen
uses: ./.github/workflows/verify-gen.yml
# Tier 2: Expensive integration tests - only run after all fast checks pass
helm-charts:
name: Helm Charts
uses: ./.github/workflows/helm-charts-test.yml
secrets: inherit
e2e-tests:
name: E2E Tests
needs: [linting, tests, codegen]
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/run-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
tests:
name: Tests
uses: ./.github/workflows/test.yml
secrets: inherit
# Named rather than inherited: this job runs the Go test suite, and so
# executes repository code and its dependency tree. It has no business
# holding the release signing keys.
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
name: Docs
uses: ./.github/workflows/verify-docgen.yml
Expand All @@ -34,7 +38,6 @@ jobs:
helm-charts:
name: Helm Charts
uses: ./.github/workflows/helm-charts-test.yml
secrets: inherit
e2e-tests:
name: E2E Tests
needs: [linting, tests, docs, codegen]
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Tests

on:
workflow_call:
secrets:
# Declared so callers can pass this one secret explicitly instead of
# `secrets: inherit`. Optional: pull requests from forks receive no
# secrets at all, and codecov accepts tokenless uploads for public
# repositories, so an empty value degrades rather than fails.
CODECOV_TOKEN:
required: false

permissions:
contents: read
Expand Down
Loading