GitHub Actions でビルド・テスト・GitHub Pages デプロイを行い、Datadog CI Visibility でパイプライン時間を比較するワークショップ用リポジトリです。
.nvmrc 参照)npm ci
npm test
npm run build
成果物は dist/index.html です。
main / dev への push で CI が動き、GitHub Pages にデプロイします。.github/workflows/ci.yml 内の SLOW BUILD(デフォルト)と FAST BUILD(コメント)を切り替えて、main と dev で実行時間を比較できます。手順の詳細はワークフロー内コメントを参照してください。ワークフロー末尾にコメントアウトした例があります。本ワークショップでは GitHub Pages のみ使用します。
Workshop repository for building, testing, and deploying to GitHub Actions with GitHub Pages, and comparing pipeline duration in Datadog CI Visibility.
.nvmrc)npm ci
npm test
npm run build
The build output is dist/index.html.
main or dev run CI and deploy to GitHub Pages..github/workflows/ci.yml, switch between SLOW BUILD (default) and FAST BUILD (commented) to compare duration on main and dev. See comments in the workflow file for details.There is a commented example at the end of the workflow. This workshop uses GitHub Pages only.