Skip to content

Kick pr linter when milestoned and demilestoned #11856

Kick pr linter when milestoned and demilestoned

Kick pr linter when milestoned and demilestoned #11856

Workflow file for this run

name: validation
on: [push, pull_request]
# Permission forced by repo-level setting; only elevate on job-level
permissions:
contents: read
# packages: read
env:
PROJECTNAME: "datadog-operator"
GO_VERSION: 1.23.5
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.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@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: cover.out,cover_integration_v1.out,cover_integration_v2.out
flags: unittests