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

Improvement: Update mdgen and its workflow. #215

Merged
merged 12 commits into from
Dec 19, 2022
Merged

Conversation

DaveMcEwan
Copy link
Contributor

  • Use the default-run manifest key to allow cargo run (instead of cargo run --bin=svlint) which is a little easier for development.
  • Write directly to RULES.md with cargo run --bin=mdgen (instead of cargo run --bin=mdgen > RULES.md).
    • Allow command to be run from anywhere in the repo, and slightly less typing.
    • This allows future work to write multiple files instead of only RULES.md (intended for future PR based on rulesets-dev)
  • Update workflow file for mdgen:
    • actions/checkout@v1 -> actions/checkout@v3
    • EndBug/[email protected] -> EndBug/add-and-commit@v9

DaveMcEwan and others added 12 commits December 18, 2022 15:37
Avoids the need to specify `--bin=svlint` with normal uses of `cargo run`.
Removes a (very minor) impediment to new devs experimenting.
- Allows use of `cargo run --bin=mdgen` anywhere in the repo.
- Don't need to remember path to RULES.md for redirecting STDOUT.
- Indent YAML list of steps.
- Remove `strategy` with one OS and one rust version each.
  Generating Markdown files should only occur on one platform at once, so
  this removes the temptation to accidentally add more OSes or rust
  versions.
- Update actions/checkout to from v1 to v3.
  - No change to inputs.
- Update EndBug/add-and-commit from v2.1.0 to v9
  - Use default values for all inputs.
- `cargo run --bin=mdgen` without directing STDOUT to a file.
  - Allows mdgen to generate multiple files (in future).
No significant speedup observed in setting up Rust toolchain.

The actions from action-rs give 5 warnings about Node.js 12 instead of
Node.js 16.
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
@dalance dalance merged commit c4be0dc into dalance:master Dec 19, 2022
@DaveMcEwan DaveMcEwan deleted the mdBuild branch December 19, 2022 12:05
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.

2 participants