-
Notifications
You must be signed in to change notification settings - Fork 19
chore(ci): add GitHub Actions quality checks and YAML formatting #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
kakkoyun
wants to merge
8
commits into
open-telemetry:main
Choose a base branch
from
kakkoyun:chore-gh-actions-quality
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
…omation Add comprehensive build tooling and automation following DataDog orchestrion best practices to improve developer experience and code quality workflows. Key additions: - Auto-generated help system (make help) with self-documenting targets - Code quality automation: format (Go/YAML) and lint (Go/YAML/Actions) - Enhanced test targets: test-unit and test-integration with gotestfmt - GitHub Actions security tools: ratchet for pinning actions - Auto-installing development tools on first use - Documentation generation support with embedmd - Organized target structure with clear categories New tools integrated (auto-install on first use): - golangci-lint: Go linter aggregator - gotestfmt: Pretty test output formatting - yamlfmt: YAML formatter and linter - actionlint: GitHub Actions workflow linter - ratchet: GitHub Actions security pinning - embedmd: Documentation embedding tool Configuration: - Added .yamlfmt for consistent YAML formatting - Updated CONTRIBUTING.md with comprehensive development guide - Renamed test-e2e to test-integration for accuracy All existing targets remain backward compatible. Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
Fix markdown linting errors (MD029) by indenting code blocks to be part of their parent list items. This prevents the list from breaking and being interpreted as separate lists. Fixes: - CONTRIBUTING.md:32:1 MD029/ol-prefix - CONTRIBUTING.md:38:1 MD029/ol-prefix Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
Use .ONESHELL and subshell for cd command to ensure the tar command runs in the correct directory. This fixes the 'Cannot stat' error when running make package. Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
f25129a to
865462d
Compare
Set SHELL to /bin/bash for targets using .ONESHELL and pipefail option. This fixes CI failures on Ubuntu where /bin/sh is dash, which doesn't support the pipefail option. Fixes: /bin/sh: 2: set: Illegal option -o pipefail Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
Apply consistent YAML formatting across all workflow and configuration files using yamlfmt. This standardizes spacing, indentation, and comment formatting for better readability and maintainability. Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
Replace glob patterns with find command in ratchet targets to gracefully handle repositories that don't have a .github/actions directory. This prevents "no such file or directory" errors when running make ratchet/pin, ratchet/update, or ratchet/check. Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
Add CI workflows to enforce code quality standards for GitHub Actions: - yaml-format-check.yaml: Validates YAML formatting using make lint/yaml - actionlint.yaml: Lints workflows and verifies pinning using make lint/action These workflows leverage existing Makefile targets which handle tool installation automatically, ensuring consistency between local development and CI environments. Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
865462d to
a78bde0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add GitHub Actions quality checks and apply consistent YAML formatting across all workflow files.
Changes
.github/actions/directoryyaml-format-check.yaml- runsmake lint/yamlactionlint.yaml- runsmake lint/actionTools
based on #125