Skip to content

CI: run PatternRegexpToPasswordRulesConverter tests when converter changes - #1247

Open
mangeshraut712 wants to merge 1 commit into
apple:mainfrom
mangeshraut712:cursor/ci-pattern-regexp-converter-d389
Open

CI: run PatternRegexpToPasswordRulesConverter tests when converter changes#1247
mangeshraut712 wants to merge 1 commit into
apple:mainfrom
mangeshraut712:cursor/ci-pattern-regexp-converter-d389

Conversation

@mangeshraut712

Copy link
Copy Markdown
Contributor

Overall Checklist

Adds a Lint job that runs tools/PatternRegexpToPasswordRulesConverter/run-tests.sh, for #1166.

@rmondello asked on that issue that the suite only run when the relevant JS files change, so this is not always-on. Other Lint jobs still run on every push/PR. Converter tests run only if tools/PatternRegexpToPasswordRulesConverter/** or .github/workflows/lint.yml changed (git diff --name-only against the PR base / push before SHA). Checkout and setup-node use the same SHA pins as the rest of lint.yml.

This replaces closed #1193, which added the job but ran it on every Lint workflow.

I ran the suite by hand on this change:

$ ./tools/PatternRegexpToPasswordRulesConverter/run-tests.sh
...
All 59 tests passed.

…anges

Add a Lint job that runs the converter suite, but only when
tools/PatternRegexpToPasswordRulesConverter or lint.yml change, so
other PRs do not pay for it.

Signed-off-by: Mangesh Raut <mbr63@drexel.edu>

Co-authored-by: Mangesh Raut <mangeshraut712@users.noreply.github.com>
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.

1 participant