Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)48k · #4745

github-actions-templates

Fungsinya

Alat ini membantu membuat template siap pakai untuk mengotomatisasi tugas seperti pengujian, build, dan deployment proyek perangkat lunak Anda di GitHub. Alat ini menyediakan contoh cara mengatur otomatisasi tersebut.

Kapan dipakai

  • ✓Saat Anda ingin mengotomatisasi pengujian kode Anda.
  • ✓Saat menyiapkan proyek agar siap di-build atau dipublikasikan.
  • ✓Untuk mengatur alur kerja deployment yang sudah diotorisasi.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-actions-templates/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-actions-templates/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Buatkan template alur kerja untuk menguji proyek Node.js saya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menawarkan contoh kode (disebut 'workflows') yang bisa Anda sesuaikan. Contoh-contoh ini menunjukkan bagaimana GitHub bisa menjalankan perintah tertentu secara otomatis, seperti pengujian, pada proyek Anda.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

GitHub Actions Workflow Patterns

When to Use

Implement testing, matrix builds, artifact preparation or an explicitly authorized deployment workflow for an existing repository.

Inputs

Inspect the repository's actual scripts, lockfile, supported runtimes, required check names and release policy. Read resources/implementation-playbook.md and references/common-workflows.md before choosing job boundaries.

Test Workflow

This Node example assumes the target repository declares npm test and supports Node 22. Adapt the runtime and command to the actual project. The pinned action revisions are explicit review inputs; verify them before adopting or updating the template.

name: Test
on:
  pull_request:
  push:
    branches: [main]
permissions:
  contents: read
jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
        with:
          persist-credentials: false
      - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
        with:
          node-version: '22'
          cache: npm
      - run: npm ci
      - run: npm test

Matrix Builds

Add a matrix only for versions and operating systems the project supports. Keep dependencies reproducible, identify failing combinations, and avoid hiding failures with blanket continue-on-error. Test required-check behavior when jobs are conditionally skipped.

Build and Publication

Build an artifact from the tested commit and record its identity. Publication needs a separate trusted job with the minimum registry permission. Do not publish artifacts produced by arbitrary untrusted code in a privileged context; bind accepted artifacts to their exact source and producing workflow.

Deployment

Use the project's protected release path. Identify the immutable artifact, destination, workload identity, rollout and rollback checks before adding deployment commands. A named GitHub environment does not configure reviewers automatically. Verify its actual protections. Do not label a placeholder echo command as a successful deployment.

Verification

Exercise one passing change and one deliberate test failure on a topic branch. Confirm the failing check prevents downstream publication. Inspect tokens, runner isolation, caches and artifact boundaries. Keep production credentials absent from untrusted validation jobs.

Example

A project needs Linux and Windows tests. Select its supported runtime, add the two runner combinations and confirm that either failure blocks the required result. Prepare publication separately; do not add registry credentials to the matrix.

Limitations

This skill supplies patterns, not an installed deployment program. Repository policy, runner trust and environment settings must be inspected. Review every third-party action at its full commit SHA and treat logs and uploaded artifacts as possible data-exposure paths.

Sources

Pertanyaan umum

Apa itu 'workflow' GitHub Actions?

Workflow adalah file konfigurasi yang memberi tahu GitHub apa yang harus dilakukan, misalnya menjalankan pengujian atau mempublikasikan kode Anda, ketika peristiwa tertentu terjadi (seperti saat Anda mengunggah perubahan baru).

Apakah bisa dipakai untuk proyek apa saja?

Template ini ditujukan untuk proyek di GitHub. Anda perlu menyesuaikannya dengan jenis proyek dan alat yang Anda gunakan.

Apakah kode saya akan dipublikasikan secara otomatis?

Alat ini menyediakan template untuk publikasi, tetapi Anda perlu mengatur dan mengotorisasi aksi ini dengan hati-hati, memastikan hanya artefak tepercaya yang dipublikasikan.

Detail

Deskripsi asli dari pembuat

Production-ready GitHub Actions workflow patterns for testing, building, and deploying applications.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4745
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa