Skip to content

Cache PR check worflow#347

Merged
DocteurPing merged 4 commits into
devfrom
improvement/test_ci_parallel
Jun 3, 2025
Merged

Cache PR check worflow#347
DocteurPing merged 4 commits into
devfrom
improvement/test_ci_parallel

Conversation

@DocteurPing

Copy link
Copy Markdown
Contributor

No description provided.

@DocteurPing DocteurPing marked this pull request as ready for review May 19, 2025 09:58
@DocteurPing DocteurPing marked this pull request as draft May 19, 2025 09:59
@DocteurPing DocteurPing changed the title Try parallel task on workflow Try cache task on workflow May 30, 2025
@DocteurPing DocteurPing marked this pull request as ready for review May 30, 2025 15:18
@DocteurPing DocteurPing requested a review from Copilot May 30, 2025 15:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the workflow by introducing a concurrency block and splitting the validation steps into separate jobs for formatting and testing/clippy checks. Key changes include:

  • Adding a concurrency configuration to cancel in-progress workflow runs.
  • Introducing a dedicated job for running "cargo fmt --check" inside a Rust container.
  • Adding a job for running tests and clippy with caching and a permission fix.
Comments suppressed due to low confidence (1)

.github/workflows/pr-check.yml:15

  • [nitpick] The job name 'fmt' is very terse; consider renaming it to something like 'format-check' to improve clarity.
fmt:

Comment thread .github/workflows/pr-check.yml
@DocteurPing DocteurPing requested a review from sfffaaa May 30, 2025 15:20
@DocteurPing DocteurPing changed the title Try cache task on workflow Cache PR check worflow May 30, 2025
@sfffaaa sfffaaa requested a review from neutrinoks June 2, 2025 14:42
fmt:
runs-on: ubuntu-latest
container:
image: rust:1.87-slim

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does that mean if we change the rusttoolchain file, we also need to change here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Normally no this is just for format check that's why i used the latest and slim version of the container.

Comment thread .github/workflows/pr-check.yml
Comment thread .github/workflows/pr-check.yml

@neutrinoks neutrinoks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good 🚀 I've left some comments for optional processing...

@DocteurPing DocteurPing merged commit 0eb2de9 into dev Jun 3, 2025
2 checks passed
@DocteurPing DocteurPing deleted the improvement/test_ci_parallel branch June 3, 2025 13:37
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.

4 participants