name: Unit Tests (Operator) run-name: Unit Tests (Operator) - ${{ github.run_id }} - @${{ github.actor }} on: push: branches: - master pull_request: paths: - '/go.mod' - '/go.sum' - 'integrations/operator/**' - 'api/types/**' - 'gen/**' - 'lib/tbot/**' - 'build.assets/Makefile' - 'build.assets/Dockerfile*' merge_group: paths: - '/go.mod' - '/go.sum' - 'integrations/operator/**' - 'api/types/**' - 'gen/**' - 'lib/tbot/**' - 'build.assets/Makefile' - 'build.assets/Dockerfile*' jobs: test: name: Unit Tests (Operator) if: ${{ !startsWith(github.head_ref, 'dependabot/') }} runs-on: ubuntu-22.04-16core permissions: contents: read container: image: ghcr.io/gravitational/teleport-buildbox:teleport13 options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout Teleport uses: actions/checkout@v3 - name: Prepare workspace uses: ./.github/actions/prepare-workspace - name: Run tests timeout-minutes: 40 run: make test-operator