Skip to content

Conversation

gregjopa
Copy link
Contributor

@gregjopa gregjopa commented May 7, 2025

This PR adds GitHub Actions for running prettier formatting checks and eslint checks. Here's a screenshot of the output:
Screenshot 2025-05-07 at 11 04 55 AM

One goal with this repo is to support other languages like java and php. So I've avoided adding a root package.json and using a monorepo for that reason.

@gregjopa gregjopa marked this pull request as ready for review May 7, 2025 16:05
@gregjopa gregjopa requested review from a team, bdellis and wsbrunson as code owners May 7, 2025 16:05
Copy link
Contributor

@EvanReinstein EvanReinstein left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

@bywood bywood left a comment

Choose a reason for hiding this comment

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

Just one small non-consequential suggestion.

"preview": "vite preview",
"start": "vite",
"format": "npx prettier . --write"
"format": "npx prettier . --write",
Copy link
Contributor

Choose a reason for hiding this comment

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

Think you can drop the npx here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch. Just removed npx from here.

find . -name package.json -maxdepth 10 -type f -not -path "*/node_modules/*" | while read -r file; do
directory=$(dirname "$file")
echo "::group:: $directory"
cd "$directory" && npm run lint && cd -
Copy link
Contributor

Choose a reason for hiding this comment

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

While you're at it, would it be helpful to have these as pre-commit hooks as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like the idea of adding them as precommit hooks too. Let's do that in a separate PR.

Copy link
Contributor

@bdellis bdellis left a comment

Choose a reason for hiding this comment

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

lgtm

@gregjopa gregjopa merged commit 16bb126 into main May 7, 2025
1 check passed
@gregjopa gregjopa deleted the feature/test-github-actions branch May 7, 2025 16:22
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.

5 participants