github-actions-templates

Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.

Author

Install

Hot:2

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=sickn33-skills-github-actions-templates&locale=en&source=copy

GitHub Actions Templates - CI/CD Automation Workflow Templates

Skills Overview


GitHub Actions Templates provide production-grade GitHub Actions workflow templates that help developers quickly implement automated testing, building, and deployment—without writing CI/CD configuration from scratch.

Use Cases

  • Automated Testing & Deployment

  • When you need to automatically run tests on code push and automatically deploy to the production environment after PRs are merged, you can use preconfigured workflow templates to quickly set up a complete CI/CD pipeline.

  • Containerized App Build & Release

  • When you need to build Docker images and push them to a container registry (e.g., GHCR, Docker Hub), the template offers ready-to-use build and release configurations, supports multi-tag management, and cache optimization.

  • Matrix Builds for Multi-Environment Testing

  • When you need to run tests in parallel across multiple operating systems and multiple runtime versions (e.g., Node.js 18.x, 20.x), a matrix build strategy can greatly improve testing efficiency.

    Core Features

  • Automated Test Workflow

  • Configure push and PR event triggers to automatically install dependencies, run code checks and unit tests, and upload test coverage reports to ensure code quality.

  • Docker Image Build & Push

  • Automatically build Docker images and push them to GitHub Container Registry, with smart version management based on branches and tags, and integrated build caching to speed up the process.

  • Kubernetes Deployment Integration

  • Configure AWS EKS credentials auto-update, run kubectl commands to deploy the app to a Kubernetes cluster, and support deployment status verification and Pod health checks.

    Frequently Asked Questions

    How to implement automated testing with GitHub Actions?


    Create a .github/workflows/test.yml file, configure push and pull_request event triggers, use actions/setup-node in steps to install the runtime environment, and run npm test to execute tests. Supports parallel testing across different Node.js versions using a matrix strategy.

    How to build a Docker image with GitHub Actions?


    Log in to the container registry using docker/login-action, generate image tags with docker/metadata-action, and finally build and push the image using docker/build-push-action. Configure GitHub Actions caching to significantly speed up builds.

    How to configure GitHub Actions to deploy to Kubernetes?


    In the workflow, use aws-actions/configure-aws-credentials to set up AWS credentials, run aws eks update-kubeconfig to update kubeconfig, then execute kubectl apply -f k8s/ to deploy resources. Use kubectl rollout status to verify the deployment succeeds.

    What is matrix build in GitHub Actions?


    Matrix builds are a parallel execution strategy that runs tests simultaneously across different operating systems (ubuntu-latest, macos-latest, windows-latest) and different runtime versions (Python 3.9, 3.10, 3.11, 3.12), greatly improving test coverage and efficiency.

    How to perform security scanning with GitHub Actions?


    Integrate the Trivy vulnerability scanning tool for security checks, generate a SARIF-format report, and upload it to the GitHub Security page. You can also configure Snyk to scan dependency vulnerabilities to ensure application security.

    How to set up production deployment approvals with GitHub Actions?


    Define an environment field in the workflow and configure environment protection rules that require manual approval. Deployment steps run only after approval, and Slack notifications can be configured to send deployment results.