Skip to content

Commit b648104

Browse files
committed
scheduler_daily.ymlのフローを最適化
- ビルドを1回だけに削減(JEKYLL_ENV=production指定を前倒し) - テストをコミット前に実行(安全性向上) - ステップ名を改善: - 🔧 Build data to render DojoMap(より明確な命名) - ✅ Test(Build & Testから分離) - 二重ビルドを完全に排除
1 parent b719e6c commit b648104

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/scheduler_daily.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,16 @@ jobs:
5151
run: |
5252
bundle exec rake get_data_from_japan
5353
54-
- name: 📍 Prepare DojoMap data for commit
54+
- name: 🔧 Build data to render DojoMap
5555
run: |
5656
# Jekyll plugin automatically runs cache_dojo_logos, upsert_dojos_geojson, and compact_geojson
57-
bundle exec jekyll build
57+
JEKYLL_ENV=production bundle exec jekyll build
58+
59+
- name: ✅ Test
60+
run: |
61+
# _site is already built in previous step
62+
JEKYLL_ENV=production bundle exec jekyll doctor
63+
SKIP_BUILD=true bundle exec rake test
5864
5965
- name: 🆙 Commit latest data to update DojoMap (if any)
6066
run: |
@@ -83,13 +89,6 @@ jobs:
8389
env:
8490
GITHUB_TOKEN:
8591

86-
- name: 🔧 Build & Test
87-
run: |
88-
# Jekyll plugin automatically runs upsert_dojos_geojson, compact_geojson, and cache_dojo_logos
89-
JEKYLL_ENV=production bundle exec jekyll build
90-
JEKYLL_ENV=production bundle exec jekyll doctor
91-
SKIP_BUILD=true bundle exec rake test
92-
9392
# This is NOT for security reason but for others, especially who fork,
9493
# to easier find out which API key they need to replace with their own.
9594
# Check out the official tutorial for details: https://docs.geolonia.com/tutorial

0 commit comments

Comments
 (0)