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

ci: integrate dorny/paths-filter into PR test workflow #1352

Merged
merged 28 commits into from
Feb 3, 2025

Conversation

AdityaP700
Copy link
Contributor

Description

  • Integrated dorny/paths-filter into the PR test workflow.
  • Updated the CI/CD workflow to conditionally run tests based on file path changes.
  • Ensured compatibility with Node.js versions 18 and 20 in the testing matrix.

Related issue(s) #1336

docs: update README.md for testing
Copy link

changeset-bot bot commented Jan 29, 2025

⚠️ No Changeset found

Latest commit: e6ddc00

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@AdityaP700
Copy link
Contributor Author

@derberg Hey there, done changes as suggested by you : alternatively worked on adding https://github.com/dorny/paths-filter as i thought it will be more realiable than git inbuilt functionality and hope it would satisfy the branch protection rules. Do let me know if any further change is needed.

should_test: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
Copy link
Member

Choose a reason for hiding this comment

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

just one thing, for security reasons we always try to remember to not use specific release but commitId

can you switch to something like in the example please: https://github.com/asyncapi/generator/blob/master/.github/workflows/bump.yml#L19

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I get the point now ,alright will do the needful changes as per the suggestions!!

@AdityaP700
Copy link
Contributor Author

Hey @derberg ,can you review the PR and let me know of any other thing needs to be done.

@derberg derberg changed the title chore(ci): integrate dorny/paths-filter into PR test workflow ci: integrate dorny/paths-filter into PR test workflow Feb 3, 2025
@derberg
Copy link
Member

derberg commented Feb 3, 2025

/rtm

@asyncapi-bot asyncapi-bot merged commit 31851c7 into asyncapi:master Feb 3, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants