Skip to content

Merge branch 'main' into fix/e2e-ksm-ccr-1-19-sa-token-race #20348

Merge branch 'main' into fix/e2e-ksm-ccr-1-19-sa-token-race

Merge branch 'main' into fix/e2e-ksm-ccr-1-19-sa-token-race #20348

Workflow file for this run

name: validation
on: [push, pull_request]
# Permission forced by repo-level setting; only elevate on job-level
permissions:
id-token: write # needed for codecov, allows the action to get a JWT signed by GitHub
contents: read
# packages: read
env:
PROJECTNAME: "datadog-operator"
GO_VERSION: 1.25.9
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: install required packages
uses: mstksg/get-package@4eda30bb5c6ac62c0f3921dd5884b6ef8fc89ab2 # v1.0.0
with:
apt-get: mercurial jq build-essential
- name: Check out code into the Go module directory
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: install tools
run: |
make install-tools
- name: run build
run: |
make manager
- name: run unit tests and E2E tests (fake cluster)
run: |
make test
- uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
with:
use_oidc: true
files: cover.out,cover_integration.out
flags: unittests
- name: Get Datadog credentials
id: dd-sts
continue-on-error: true
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 # v1.0.0
with:
policy: datadog-operator
- name: Upload coverage to Datadog
if: steps.dd-sts.outputs.api_key != ''
continue-on-error: true
uses: DataDog/coverage-upload-github-action@d2cf302a39c05e0ad22063360a2bf6ce0cc4906c # v1
with:
api_key: ${{ steps.dd-sts.outputs.api_key }}
files: .
flags: unittests