Skip to content

Add CI workflow for PRs to main#58

Merged
dominikholler merged 2 commits intomainfrom
add-ci-workflow-11583008319878649889
Jan 23, 2026
Merged

Add CI workflow for PRs to main#58
dominikholler merged 2 commits intomainfrom
add-ci-workflow-11583008319878649889

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This PR adds a new GitHub Action workflow (ci.yaml) that performs the following checks on pull requests targeting the main branch:

  1. Checkout code
  2. Install Golang
  3. Install gofumpt
  4. Run go mod tidy
  5. Run go mod vendor
  6. Run gofumpt against the code
  7. Ensure that there are no modified or uncommitted files

Additionally, this PR updates the repository to satisfy these new CI requirements by:

  • Tidying the Go modules.
  • Creating the vendor/ directory.
  • Reformatting main.go using gofumpt.

PR created automatically by Jules for task 11583008319878649889 started by @dominikholler

- Create `.github/workflows/ci.yaml` to run basic CI checks on new PRs to main.
- Run `go mod tidy` and `go mod vendor` to update dependencies and vendor directory.
- Format codebase using `gofumpt`.
- Ensure repository state passes the new CI checks.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Comment thread .github/workflows/ci.yaml Outdated

- name: Ensure no modified or uncommitted files
run: |
git add .
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The check should to ensure that the gofumpt andgo mod tidy` does not change any code

Suggested change
git add .
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Modified or uncommitted files found"
git status --porcelain
exit 1
fi

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've updated the workflow to use the suggested script for checking modified or uncommitted files.

Comment thread .github/workflows/ci.yaml Outdated
run: go mod tidy

- name: Run go mod vendor
run: go mod vendor
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I changed my mind, please do not vendor the code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've removed the vendoring step from the workflow and deleted the vendor/ directory from the repository.

- Create `.github/workflows/ci.yaml` for PR checks on main.
- Remove vendor directory and related workflow step per PR feedback.
- Update CI workflow to use `git status --porcelain` for uncommitted files check.
- Ensure codebase is formatted and `go.sum` is updated.
@dominikholler dominikholler marked this pull request as ready for review January 23, 2026 18:49
@dominikholler dominikholler merged commit 3d61537 into main Jan 23, 2026
2 checks passed
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