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: Initial GHA workflow #1

Merged
merged 13 commits into from
Jan 4, 2022
Merged

chore: Initial GHA workflow #1

merged 13 commits into from
Jan 4, 2022

Conversation

bryphe-coder
Copy link
Contributor

@bryphe-coder bryphe-coder commented Jan 3, 2022

This implements an initial GitHub Actions workflow for us - to be run on PRs and on main commits.

This just implements a really simple style/fmt check - running prettier on the README.md.

I assumed we'll stick with using a top-level Makefile for commands like in m and link - but open to alternatives, too!

Since I was adding a package.json and node_modules for this, I realized we were missing .gitignores, so I added some a subset of the ignore files from coder/m

TODO:

  • Verify workflow is run. It should fail because the README.md needs formatting

Makefile Show resolved Hide resolved
@bryphe-coder bryphe-coder self-assigned this Jan 3, 2022
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Few minor things! Once fixed, feel free to merge!

.eslintignore Outdated
###############################################################################
.cache
vendor
product/coder/cmd/coderd/config.toml
Copy link
Member

Choose a reason for hiding this comment

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

We should be able to cleanup a few of these.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooh, ya, good point - I'll clear these out to just the ones we actually need (right now, just node_modules).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cleaned up in 6f0a43e

package.json Outdated
"name": "coder-v2",
"version": "0.0.1",
"description": "Coder V2 (Workspaces V2)",
"main": "index.js",
Copy link
Member

Choose a reason for hiding this comment

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

Probably should remove the main for now, since it seems unlikely we'll have one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally, thanks for catching this! Removed in db32104

package.json Outdated
@@ -0,0 +1,15 @@
{
"name": "coder-v2",
"version": "0.0.1",
Copy link
Member

Choose a reason for hiding this comment

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

Feels like this version will get outdated really fast.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I realized we don't have a version in coder/m's root package.json, so I'll leave out here too. We can always add back later, but better to simplify as you suggested 👍

Also removed this in db32104

@bryphe-coder bryphe-coder merged commit 78973ea into main Jan 4, 2022
@bryphe-coder bryphe-coder deleted the bryphe/chore/initial-ci branch January 4, 2022 02:54
@bryphe-coder
Copy link
Contributor Author

Thanks for the review and suggestions, @kylecarbs !

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.

None yet

2 participants