Skip to content
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

test: pr check code lint and unit test #13

Merged
merged 3 commits into from
Jan 12, 2025
Merged

test: pr check code lint and unit test #13

merged 3 commits into from
Jan 12, 2025

Conversation

luohoufu
Copy link
Contributor

What does this PR do

pr check code lint and unit test

Rationale for this change

This pull request introduces a new GitHub Actions workflow for PR checks and removes the existing unit test workflow. It also includes minor code formatting changes and updates to improve readability and consistency.

GitHub Actions Workflows:

Code Formatting and Updates:

  • main.go: Reordered imports to group external packages together for better readability.
  • main.go: Updated the usage of util.ByteValue to use named fields for clarity in multiple print statements. [1] [2] [3]

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@luohoufu luohoufu requested a review from medcl January 10, 2025 02:50
- name: Checkout current repository
uses: actions/checkout@v4
with:
fetch-depth: 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the documentation of this action:

Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Set fetch-depth: 0 to fetch all history for all branches and tags.

Do we need to fetch all the things?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is currently useless. If we add conditions to test other branches, we need to use them at this time.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@medcl medcl merged commit 324a3ba into main Jan 12, 2025
4 checks passed
@medcl medcl deleted the pr_lint branch January 12, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants