GitHub Actions Workflow Generator
A fresh GitHub repository with no CI is one git push away from the next broken deploy. This generator writes a starter .github/workflows/ci.yml for Node, PHP or Laravel, wiring up checkout, the right runtime action, dependency install and the standard test command, everything you need to turn the green/red dot on.
How to generate a workflow
-
1
Pick the stack
Node (uses `actions/setup-node`), PHP (uses `shivammathur/setup-php`) or Laravel (PHP + `php artisan test`).
-
2
Set the main branch
`main` is the default; override if your repo still uses `master` or a custom name.
-
3
Generate
The tool assembles a YAML file with `push` and `pull_request` triggers on that branch.
-
4
Commit to .github/workflows/
Create the file at `.github/workflows/ci.yml` and push: the Actions tab lights up on the next commit.
What the workflow looks like
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
- run: composer install --no-interaction
- run: php artisan test
Actions pinned by the generator
| Action | Purpose |
|---|---|
actions/checkout@v4 |
Clone the repo into the runner |
actions/setup-node@v4 |
Install a Node toolchain |
shivammathur/setup-php@v2 |
Install a PHP version with extensions |
What to add next
- Lint step (
npm run lint,./vendor/bin/phpstan analyse) before the test step. - Matrix build: run across multiple Node/PHP versions with
strategy.matrix. - Coverage upload:
codecov-actionorcoveralls-actionafter the test step. - Secrets: never hardcode tokens, use
secrets.XXXand define them under Settings → Actions.
Common pitfalls
- Forgetting to fetch tags:
with: { fetch-depth: 0 }oncheckoutwhen your release logic reads tags. - Using
latestDocker images: pin versions to keep runs reproducible months later. - Running a 30-minute test suite on every push: split long jobs with
needs:to parallelise.
Frequently Asked Questions
At .github/workflows/ci.yml in your repo root. GitHub picks up any YAML under that directory and shows each as a separate workflow in the Actions tab.
Pull requests from forks run the workflow but with GITHUB_TOKEN set to read-only. External contributors cannot access your secrets unless you explicitly opt in.
Add a strategy.matrix.php: [8.2, 8.3, 8.4] block and reference ${{ matrix.php }} in the setup-php step. The runner will spawn one job per version in parallel.
No. The generated YAML is shown on the page, is not uploaded or saved anywhere, and you copy it out yourself.
Related Tools
ASCII Table Reference
Full ASCII table from 0 to 127 with decimal, hex, octal, binary, standard names and HTML numeric-reference notation, including NUL, LF and DEL.
Color Palette Generator
Generate monochromatic, analogous, complementary, triadic or tetradic color palettes from a base HEX color and export copy-ready CSS variables.
HTML Character Reference
Searchable list of HTML entities, their named and numeric codes, and a one-click copy for special characters and symbols.
HEX Color Picker
Pick or enter a HEX colour and get RGB, HSL, approximate CMYK, relative luminance and contrast ratios against white and black.
FPS Counter
Measure browser FPS with requestAnimationFrame, smoothing, min/max frame rate, warnings and an optional graph. Runs locally with no upload or API.
JSON Formatter
Paste JSON to pretty-print with 2 or 4 spaces, minify it to compact output, or run a quick syntax check before copying the result.
Tool available in other languages
- Gerador de Workflow do GitHub Actions [PT]
- Bộ công cụ tạo luồng công việc cho GitHub Actions [VI]
- Generador de Flujos de Trabajo de GitHub Actions [ES]
- GitHub Actions ワークフロージェネレーター [JA]
- مولّد سير عمل GitHub Actions [AR]
- GitHub Actions Workflow-generator [SV]
- Générateur de Workflow GitHub Actions [FR]
- GitHub-Actions-Workflow-Generator [DE]
- เครื่องมือสร้างลำดับขั้นตอนการทำงานสำหรับ GitHub Actions [TH]
- GitHub Actions 워크플로우 생성기 [KO]
- GitHub Actions Werkstroomgenerator [NL]
- Generator Alur Kerja untuk GitHub Actions [ID]
- Generator workflow GitHub Actions [PL]
- Генератор рабочих процессов для GitHub Actions [RU]
- GitHub Actions İş Akışı Üreteci [TR]
- GitHub Actions 工作流生成器 [ZH]
- Generatore di Workflow di GitHub Actions [IT]