本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)48k · #4745

github-actions-templates

できること

テスト、ビルド、デプロイなどの作業を自動化するための、本番環境で使えるテンプレートをGitHub上で作成するためのツールです。こうした自動化の設定例も提供します。

使う場面

  • ✓コードのテストを自動化したいとき。
  • ✓プロジェクトをビルドしたり公開したりする準備をしたいとき。
  • ✓許可を得たうえでデプロイの流れを設定したいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-actions-templates/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Node.jsプロジェクトのテスト用ワークフローのテンプレートを作成してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、そのまま使ったり手直ししたりできるコード例(「ワークフロー」と呼ばれます)を提供します。例では、テストなどの特定のコマンドをGitHubが自動で実行する方法を示しています。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

GitHub Actionsの「ワークフロー」とは何ですか?

GitHubに対して、特定の出来事(新しい変更のプッシュなど)が起きたときに、テストの実行やコードの公開などを指示する設定ファイルのことです。

どのプロジェクトにも使えますか?

テンプレートはGitHub上のプロジェクト向けです。プロジェクトの種類や使っているツールに合わせて調整する必要があります。

このツールを使うと、コードが自動で公開されますか?

公開用のテンプレートを提供しますが、この操作は慎重に設定し、許可を与える必要があります。信頼できる成果物だけが公開されるようにしてください。

詳細

作者による元の説明

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

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4745
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル