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

Setup hello world and lint workflow #1

Merged
merged 24 commits into from
Jul 19, 2024

Conversation

anttiharju
Copy link
Owner

@anttiharju anttiharju commented Jul 19, 2024

Setting up some infra before actually developing anything.

anttiharju added 4 commits July 19, 2024 19:39
@anttiharju anttiharju force-pushed the setup-hello-world-and-lint-workflow branch from 5c382b0 to aab1d16 Compare July 19, 2024 17:16
@anttiharju anttiharju marked this pull request as ready for review July 19, 2024 20:05
@anttiharju anttiharju merged commit 6e54d82 into main Jul 19, 2024
2 checks passed
@anttiharju anttiharju deleted the setup-hello-world-and-lint-workflow branch July 19, 2024 20:05
anttiharju added a commit that referenced this pull request Oct 13, 2024
* Init Go module

`go mod init github.com/anttharju/golangci-lint-updater`

* Add hello world

https://go.dev/play/

* Add golangci-lint workflow

* Improve naming

* Add .editorconfig

* Read golangci-lint version from a file

* Remove unnecessary names

* Add a makefile target for installing the linter

* Rename workflow to be more generic

* Add make shellcheck and workflow step

* Fix shellcheck issues

* Separate shellcheck from golangci-lint job

* Debug shellcheck

* Remove which shellcheck

It exists. Using find's -exex instead of xargs seemingly fixed the issue.

* See if shellcheck catches issues in the action run

* Revert "See if shellcheck catches issues in the action run"

This reverts commit b8b5ae0.

* Rename .golangci-version to .golangci.version

Matches .golangci.yml better

* Add make lint target

See https://tech.davis-hansson.com/p/make/

* Add lint-fix target and rename install-linter to lint-install

* Add golangci-lint config file

This is not its final form, just something to start with.
Pulled from an older (currently private) project of mine.

* Remove forbidigo

Wanted to see the golangci-lint job fail.

I think this is enough for this PR.

* Satisfy gosmopolitan

Caught me off-guard. Oh well.

* Add make ci for use with a pre-commit hook

Don't like being caught off-guard. Tighter feedback loop.

* Add make install-pre-commit-hook

Easier for anyone using the repo to install it now.
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.

1 participant