.github/workflows/ci.yml you can drop into a repository. The output follows standard GitHub Actions idioms: checkout, setup- actions, dependency restore, and a lint/test/build phase.Choose a trigger, runner, and toolchain — copy a ready-to-commit ci.yml for GitHub Actions.
Saved as .github/workflows/NAME.yml
The generated file uses current action versions: actions/checkout@v4, actions/setup-node@v4, actions/setup-python@v5, actions/cache@v4.
Steps follow the standard CI shape: checkout, toolchain setup, cache, install dependencies, lint, test, build.
Commit the file as .github/workflows/<name>.yml at the repository root.
Node — npm ci, npm run lint (if enabled), npm test, npm run build.
Python — pip install -r requirements.txt, ruff/flake8 or pytest, build via python -m build.
Java Maven — mvn -B test and package with the ~/.m2 cache.
Java Gradle — gradle build with gradle/actions/setup-gradle.
Ruby — bundle install, rubocop (optional), bundle exec rake.
Go — go test ./..., go vet with the module cache.
.NET — dotnet restore, dotnet test, dotnet build with the NuGet cache.
.github/workflows/ci.yml you can drop into a repository. The output follows standard GitHub Actions idioms: checkout, setup- actions, dependency restore, and a lint/test/build phase.