Create a GitHub Actions CI workflow that installs dependencies, runs tests, and validates code automatically on push and pull request events.
Understand workflow triggers, jobs, steps, automation basics, and how CI helps teams catch issues early.
Use a sample project with a simple install and test workflow.
Create or select a sample repo
Make sure package install works
Make sure at least one validation or test command exists
Define the CI file and configure the event triggers.
Create workflow file under .github/workflows
Configure push and pull_request triggers
Add checkout step
Add dependency install step
Add test or validation step
Trigger the workflow and confirm that the pipeline behaves correctly.
Push changes to GitHub
Open a pull request if needed
Check workflow execution in GitHub Actions
Review job logs
Create a sample repository.
Add a workflow file under .github/workflows.
Configure trigger on push and pull_request.
Run install and test steps.
Validate the workflow in GitHub.
The workflow appears in GitHub Actions
The pipeline runs automatically on trigger
Install step completes successfully
Tests or validation steps pass
Logs clearly show each CI stage
Working GitHub Actions workflow
README with pipeline explanation
Successful run visible in GitHub Actions
Great proof that you can automate validation workflows and understand the structure of a modern CI pipeline.
Wrong workflow YAML indentation
Incorrect trigger configuration
Missing checkout step
Using commands that do not exist in the project
Not pinning setup actions or runtime versions clearly
Add a build stage
Add Docker image build in CI
Publish artifacts
Convert CI workflow into CI/CD with deployment