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

(chore) catch invalid json #26

Merged
merged 2 commits into from
Jun 2, 2021
Merged

(chore) catch invalid json #26

merged 2 commits into from
Jun 2, 2021

Conversation

joshgoebel
Copy link
Contributor

No description provided.

@joshgoebel joshgoebel merged commit b833f67 into main Jun 2, 2021
Comment on lines +20 to +21
- name: Ensure valid JSON
run: jq '.' config.json
Copy link
Member

Choose a reason for hiding this comment

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

This is actually a very nice idea. @ee7 @SaschaMann do we want to add this to the central configlet workflow to catch exercism/configlet#312?

Copy link
Member

@ee7 ee7 Jun 2, 2021

Choose a reason for hiding this comment

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

Great idea. Why didn't we think of this before? It's a good stop-gap measure until we have stricter parsing in configlet lint.

Created a draft PR here: exercism/github-actions#21

Maybe we can make this look obvious in the workflow log, rather than needing to do a mass PR to each track's configlet.yml.

Edit: The main downside is that people will only see that their JSON is invalid in CI, and not when running configlet lint locally. But I've just realised that we can just make configlet lint run jq when it's detected on the system (and/or when we're running in CI). Let's do that instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But I've just realised that we can just make configlet lint run jq when it's detected on the system (and/or when we're running in CI). Let's do that instead.

Now we're thinking! :-) It could even recommend you install it...

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