-
Notifications
You must be signed in to change notification settings - Fork 1
Create basic CI workflow with build job #1
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
Conversation
This workflow is set up to run on push or pull request events for the main branch, and can also be triggered manually. It includes a build job that checks out the repository and runs simple scripts.
Reviewer's GuideAdds a basic GitHub Actions workflow that runs on main branch pushes, pull requests, or manual dispatch and executes a single build job on Ubuntu runners with checkout and example scripts. Sequence diagram for the CI workflow trigger and build job executionsequenceDiagram
actor Developer
participant GitHubRepo
participant GitHubActions
participant WorkflowCI
participant JobBuild
participant UbuntuRunner
Developer->>GitHubRepo: Push commit to main
GitHubRepo-->>GitHubActions: Emit push event
GitHubActions->>WorkflowCI: Match event on main branch
WorkflowCI->>JobBuild: Start build job (runs-on ubuntu-latest)
JobBuild->>UbuntuRunner: Provision runner ubuntu-latest
UbuntuRunner-->>JobBuild: Runner ready
JobBuild->>UbuntuRunner: Execute actions/checkout@v4
UbuntuRunner-->>JobBuild: Repository checked out
JobBuild->>UbuntuRunner: Run echo Hello, world!
UbuntuRunner-->>JobBuild: One-line script completed
JobBuild->>UbuntuRunner: Run multi-line echo script
UbuntuRunner-->>JobBuild: Multi-line script completed
JobBuild-->>WorkflowCI: Job completed
WorkflowCI-->>GitHubActions: Workflow run completed
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
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.
Pull request overview
This PR adds a basic GitHub Actions CI workflow that runs on pushes, pull requests to main, and manual triggers, executing simple placeholder build steps.
Changes:
- Introduces a
CIworkflow configured forpush,pull_request, andworkflow_dispatchevents. - Defines a single
buildjob onubuntu-latestthat checks out the code and runs example shell commands.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This workflow is set up to run on push or pull request events for the main branch, and can also be triggered manually. It includes a build job that checks out the repository and runs simple scripts.
Summary by Sourcery
CI: