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

Check docs and run clippy on PRs #326

Merged
merged 9 commits into from
Nov 19, 2021
Merged

Check docs and run clippy on PRs #326

merged 9 commits into from
Nov 19, 2021

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Nov 18, 2021

Adapt the CI from Soketto/Desub to run here. Main changes:

  • Jobs run in parallel (and it's more visible at a glance what failed).
  • Caching. Seems to speed up some of the checks quite nicely at least.
  • Add clippy check (and fix clippy lints).
  • Add doc link test (and fix doc things).

@jsdw jsdw marked this pull request as ready for review November 18, 2021 16:01
@jsdw jsdw requested review from ascjones and maciejhirsz November 18, 2021 16:01
Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

Nice and fast CI checks 🚀

uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
Copy link
Member

Choose a reason for hiding this comment

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

all targets?!

Suggested change
args: -- -D warnings
args: --all-targets -- -D warnings

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ooh good catch! That picked up some more lint issues to fix too :D :'(

Copy link
Member

@niklasad1 niklasad1 Nov 18, 2021

Choose a reason for hiding this comment

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

maybe postpone it to another PR I suspect that it will require plenty of work :(

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, I've just finished fixing them so it's all gravy :)

@jsdw jsdw merged commit 97f4112 into master Nov 19, 2021
@jsdw jsdw deleted the jsdw-clippy-docs branch November 19, 2021 10:36
0623forbidden pushed a commit to DEIPworld/substrate-subxt that referenced this pull request Feb 15, 2022
* Check docs, clippy, test run

* test parallel CI adapted from other package; is it faster?

* Remember to download substrate

* Nightly for cargo fmt

* Standardise CI names

* fix clippy complaints

* Ensure docs are valid and export publicly accessible types

* all-targets clippy, and fix additional lint errors

* newline in ci file
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.

3 participants