Skip to Content
Vueを学ぶ
book

Vueを学ぶ

by Maya Shavin
March 2025
Intermediate to advanced
350 pages
5h 20m
Japanese
O'Reilly Media, Inc.
Content preview from Vueを学ぶ

第12章 Vue.Jsアプリケーションの継続的インテグレーションと継続的デプロイ Vue.Jsアプリケーションの継続的インテグレーション/継続的デプロイ

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

前の章では、Vueアプリケーションのテストをセットアップする方法を、Viteを使った単体テストからPlaywrightを使ったE2Eテストまで紹介した。アプリケーションを適切なテストでカバーすることで、次のステップに進むことができる。

この章では、CI/CDの概念と、GitHub Actionsを使ってVueアプリケーションのCI/CDパイプラインをセットアップする方法を紹介する。また、アプリケーションのデプロイとホスティングのプラットフォームとしてNetlifyを使う方法も学ぶ。

ソフトウェア開発におけるCI/CD

継続的インテグレーション(CI)と継続的デリバリ(CD)は、ソフトウ ェア開発とデリバリプロセスのスピードアップと安定化を目的とした、ソフトウ ェア開発手法の組み合わせである。CI/CDには、自動化されたインテグレーション、テスト、継続的デプロイプロセスを通じて、ソフトウェアライフサイクルを効果的に監視することが含まれる 。

CI/CD はソフトウェア開発に多くの利点を提供する。 :

  • デプロイの自動化により、ソフトウェアデリバリを高速化する。

  • 異なるチーム間のコラボレーションを強化する

  • 自動テストによるソフトウェア品質の向上

  • よりアジャイルなアプローチで、バグやソフトウェア問題へのレスポンスをより速くする。

つまり、CI/CDには継続的インテグレーション、継続的デリバリ、継続的デプロイという3つの主要概念が含まれており、これらを組み合わせることで、CI/CDパイプラインとして知られる堅牢性の高いソフトウェア開発プロセスを形成する(図12-1)。

A screenshot showing the CI/CD pipeline approach, with continuous integration, continuous delivery, and continuous deployment
図12-1. CI/CDパイプライン

継続的インテグレーション

継続的インテグレーションは、開発者が独立して作業しながら、共有リポジトリにコードを頻繁かつ同時に統合することを可能にする。コードの統合(またはマージ)ごとに、アプリケーションの自動ビルドとさまざまなレベルのテストの自動化システムを使用して検証する。もし新旧のコードバージョン間にコンフリクトがあったり、新しいコードに何らかの問題があったりした場合、私たちはそれを迅速に検出し、修正することができる。継続的インテグレーション用の標準的なツールには、Jenkins、CircleCI、GitHub Actionsがある。"GitHub ActionsによるCI/CDパイプライン" で説明する。

継続的デリバリ

継続的インテグレーションが成功した次のステップは、継続的デリバリだ。継続的デリバリは、検証されたアプリケーションのコードを共有リポジトリに自動リリースし、本番デプロイできる状態にする。継続的デリバリは、コードが常に検証されていることを前提とするため、継続的インテグレーションを必要とする。また、一連の自動テストとリリース自動化 も含まれる。

継続的デプロイ

継続的デプロイはCI/CDパイプラインの最終ステップで、検証済みのコードを本番環境に自動的にデプロイする。コードベースに対して十分にテストされた自動化システムに大きく依存する。継続的デプロイは、CI/CDパイプラインの最も高度なステップである。特に、本番デプロイの前に手作業による承認が必要な場合など、一部のプロジェクトでのみ必要となる。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

エンジニアが学ぶ会計システムの「知識」と「技術」

エンジニアが学ぶ会計システムの「知識」と「技術」

広川 敬祐, 五島 伸二, 小田 恭彦, 大塚 晃, 川勝 健司
グリーンなソフトウェア開発

グリーンなソフトウェア開発

Anne Currie, Sarah Hsu, Sara Bergman
強力なPython

強力なPython

Aaron Maxwell

Publisher Resources

ISBN: 9798341626102