-
-
Notifications
You must be signed in to change notification settings - Fork 0
ci(go): add GitHub Actions build workflow; drop local pre-commit hooks #47
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,53 @@ | ||||||
| --- | ||||||
| name: Go | ||||||
|
|
||||||
| on: | ||||||
| pull_request: | ||||||
| push: | ||||||
| branches: [main] | ||||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v6 | ||||||
| - name: Load project settings | ||||||
| id: settings | ||||||
| run: | | ||||||
| set -a | ||||||
| source .project-settings.env | ||||||
| set +a | ||||||
| echo "go_version=${GO_VERSION}" >> "$GITHUB_OUTPUT" | ||||||
| echo "gci_prefix=${GCI_PREFIX:-github.com/hyp3rd/starter}" >> "$GITHUB_OUTPUT" | ||||||
| echo "golangci_lint_version=${GOLANGCI_LINT_VERSION}" >> "$GITHUB_OUTPUT" | ||||||
| echo "proto_enabled=${PROTO_ENABLED:-true}" >> "$GITHUB_OUTPUT" | ||||||
|
|
||||||
| - name: Set up Go | ||||||
| uses: actions/setup-go@v6.1.0 | ||||||
|
||||||
| uses: actions/setup-go@v6.1.0 | |
| uses: actions/setup-go@v6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value for GCI_PREFIX is 'github.com/hyp3rd/starter' but the actual value in .project-settings.env is 'github.com/hyp3rd/sectools'. This default appears to be incorrect and should match the actual project. The same inconsistency exists in lint.yml. Consider updating the default to match the actual project value.