fix(component/hosted-cluster): deploy dummy ServiceAccount to HC and make it discoverable to package-operator-hosted-cluster-manager to enable ImagePullSecret resolution #6415
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
workflow_dispatch: | |
pull_request: | |
merge_group: | |
push: | |
branches: [main] | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
lint-unit-int: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.22' | |
cache-dependency-path: "**/*.sum" | |
check-latest: true | |
- name: Ensure code is sanitized | |
run: ./do CI:PostPush | |
- name: Unit | |
run: ./do CI:Unit | |
- name: Integration tests | |
run: ./do CI:Integration | |
env: | |
CARDBOARD_CONTAINER_RUNTIME: docker | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: .cache/unit/cover.txt,.cache/integration/cover.txt | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: ${{ github.event_name != 'pull_request' }} | |
verbose: true | |
- name: Archive unit test results | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: unit-test-results | |
path: .cache/unit | |
- name: Archive integration test results | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: integration-test-results | |
path: .cache/integration |