Generate GitHub Actions workflow YAML for any language. Pick your triggers, OS, and steps.
name: CI
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm testGitHub Actions is a CI/CD platform built into GitHub that automates software workflows. Workflows are defined as YAML files in <code>.github/workflows/</code> and can run tests, build containers, deploy applications, or any custom automation whenever code is pushed, a pull request is opened, or on a schedule.
Select your trigger events (push, pull request, manual dispatch, or schedule), choose an operating system runner, pick your language and version, then check the steps you need. The generator produces a complete, working YAML file you can copy directly into your repository.
Generated workflows use the latest stable action versions: <code>actions/checkout@v4</code>, <code>actions/setup-node@v4</code>, and equivalents for other runtimes. Adjust the branch filters and matrix versions to match your project's needs.