Create and configure a basic GitHub Actions CI/CD workflow for automated testing and deployment
When you need to automate testing, building, or deployment processes for a GitHub repository.
Create workflow directory: mkdir -p .github/workflows
Create workflow file: touch .github/workflows/ci.yml
Add basic workflow structure: name: CI Pipeline
on: push: branches: [ main, develop ] pull_request: branches: [ main ]
jobs: test: runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
Commit and push: git add . && git commit -m "Add CI workflow" && git push
Navigate to repository Actions tab to view workflow execution
Check that the workflow appears in the Actions tab and runs successfully on the next push or pull request.
npx skills add Snehal707/setup-github-actions-workflow下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer