x402
GitHub Actions Generate (x402)
Generate CI/CD workflow YAML for GitHub Actions. Supports multiple languages, frameworks, and deploy targets (Railway, Vercel, Fly).
get/x402/v2/github-actions-generate
Request
- Base URL: https://api.strale.io
- URL: https://api.strale.io/x402/v2/github-actions-generate
- Auth: none required
Query parameters
languagestring required
frameworkstring
deploy_targetstring
Response
Success
Example response
{
"jobs": [
"install",
"lint",
"test",
"build"
],
"language": "en",
"framework": "express",
"deploy_target": null,
"workflow_yaml": "name: CI/CD Pipeline\n\non:\n push:\n branches: [ main, develop ]\n pull_request:\n branches: [ main, develop ]\n\njobs:\n install:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: '18'\n cache: 'npm'\n - name: Install dependencies\n run: npm ci\n - name: Save node_modules cache\n uses: actions/cache@v4\n with:\n path: node_modules\n key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}\n restore-keys: |\n ${{ runner.os }}-node-\n\n lint:\n needs: install\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: '18'\n cache: 'npm'\n - name: Restore node_modules cache\n uses: actions/cache@v4\n with:\n path: node_modules\n key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}\n - name: Run linter\n run: npm run lint --if-present\n\n test:\n needs: install\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: '18'\n cache: 'npm'\n - name: Restore node_modules cache\n uses: actions/cache@v4\n with:\n path: node_modules\n key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}\n - name: Run tests\n run: npm test\n\n build:\n needs: [lint, test]\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: '18'\n cache: 'npm'\n - name: Restore node_modules cache\n uses: actions/cache@v4\n with:\n path: node_modules\n key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}\n - name: Build application\n run: npm run build --if-present\n",
"secrets_needed": [],
"triggers_configured": [
"push",
"pull_request"
],
"estimated_run_minutes": 8
}Changes
No recorded changes to this operation across all 1 revision of this API.