Skip to content

fix(component/hosted-cluster): deploy dummy ServiceAccount to HC and make it discoverable to package-operator-hosted-cluster-manager to enable ImagePullSecret resolution #6415

fix(component/hosted-cluster): deploy dummy ServiceAccount to HC and make it discoverable to package-operator-hosted-cluster-manager to enable ImagePullSecret resolution

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

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