Generate a GitHub Actions CI Workflow

Ask Copilot to create a GitHub Actions workflow for testing and building a project.

category:devops
github-actions
ci
automation
0

Prompt

Create a GitHub Actions workflow for this project.
  
  Stack:
  [Node version / language / framework]
  
  Requirements:
  - Trigger on pull requests and pushes to main.
  - Install dependencies with caching.
  - Run tests and linting.
  - Build the project on main.
  
  Return a single YAML file under .github/workflows/ci.yml.