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

Optimize Test Workflow to Run Only on Relevant File Changes #113

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

mayank-Pareek
Copy link
Contributor

Fixes #109

This PR modifies the GitHub Actions workflow to trigger tests only when specific files are changed, reducing unnecessary test runs and saving CI resources. With this update, the tests will only run if any of the following files or patterns are modified:

  • Files with extensions .mjs, .js, .ts
  • .github/workflows/*.yml
  • package.json
  • tsconfig.json

Changes Made:

  • Updated .github/workflow/test.yml by adding paths filtering under push and pull_request triggers, specifying the relevant files to watch.
     paths:
       - '*.mjs'
       - '*.js'
       - '*.ts'
       - '.github/workflows/*.yml'
       - 'package.json'
       - 'tsconfig.json'

Copy link

sonarcloud bot commented Oct 31, 2024

@0xflotus 0xflotus merged commit f025400 into 0xflotus:main Oct 31, 2024
13 checks passed
@mayank-Pareek mayank-Pareek deleted the update-ci-test branch October 31, 2024 21:29
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.

Tests should only run if some special files were edited
2 participants