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

Start testing against a sample #51

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

nickcharlton
Copy link
Member

@nickcharlton nickcharlton commented Jan 24, 2024

To keep up to date with dependencies, it's really hard to know we've done it correctly without some tests and samples to check against.

This provides a sample (from guides), with which we can test against in both the positive and negative cases, we include a GitHub Actions configuration too, so tests are automated.

In our sample, we have text-size which doesn't exist in our current version of stylelint. We'll remove this rule in future, as for now, we override it to ensure the tests start from green.

Finally, we add lint:css as a script to npm to allow for "self-linting" and testing the samples.

https://github.com/thoughtbot/guides/tree/main/sass

@nickcharlton nickcharlton force-pushed the nc-test-against-sample branch 2 times, most recently from 365ae0e to 97fe79c Compare January 30, 2024 15:51
@nickcharlton nickcharlton marked this pull request as ready for review January 30, 2024 15:52
@LkeMitchll
Copy link
Contributor

@nickcharlton I've added some more examples to the invalid sample in ed24e25

To keep up to date with dependencies, it's really hard to know we've
done it correctly without some tests and samples to check against.

This provides a sample (from guides), with which we can test against in
both the positive and negative cases, we include a GitHub Actions
configuration too, so tests are automated.

In our sample, we have `text-size` which doesn't exist in our current
version of `stylelint`. We'll remove this rule in future, as for now, we
override it to ensure the tests start from green.

Finally, we add `lint:css` as a script to npm to allow for "self-linting"
and testing the samples.

https://github.com/thoughtbot/guides/tree/main/sass

Co-authored-by: Luke Mitchell <LkeMitchll@users.noreply.github.com>
@nickcharlton nickcharlton merged commit abd1f45 into main Feb 1, 2024
2 checks passed
@nickcharlton nickcharlton deleted the nc-test-against-sample branch February 1, 2024 17:58
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