Skip to content

Commit 79ed52b

Browse files
committed
Github action to notify of missing http dependencies
1 parent 61e8013 commit 79ed52b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,46 @@ jobs:
9595
- name: Deploy to GitHub Pages
9696
id: deployment
9797
uses: actions/deploy-pages@v4
98+
99+
- name: Verify CDN dependencies and API endpoints
100+
run: |
101+
echo "Checking CDN dependencies..."
102+
103+
# Google Fonts
104+
curl -f -s -o /dev/null -w "Google Fonts CSS: %{http_code}\n" \
105+
"https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic" || exit 1
106+
107+
# Leaflet CSS
108+
curl -f -s -o /dev/null -w "Leaflet CSS: %{http_code}\n" \
109+
"https://unpkg.com/[email protected]/dist/leaflet.css" || exit 1
110+
111+
# Leaflet JS
112+
curl -f -s -o /dev/null -w "Leaflet JS: %{http_code}\n" \
113+
"https://unpkg.com/[email protected]/dist/leaflet.js" || exit 1
114+
115+
# Choices.js CSS
116+
curl -f -s -o /dev/null -w "Choices.js CSS: %{http_code}\n" \
117+
"https://cdn.jsdelivr.net/npm/choices.js/public/assets/styles/choices.min.css" || exit 1
118+
119+
# Choices.js JS
120+
curl -f -s -o /dev/null -w "Choices.js JS: %{http_code}\n" \
121+
"https://cdn.jsdelivr.net/npm/choices.js/public/assets/scripts/choices.min.js" || exit 1
122+
123+
# OpenStreetMap tile server (check one sample tile)
124+
curl -f -s -o /dev/null -w "OpenStreetMap Tiles: %{http_code}\n" \
125+
"https://a.tile.openstreetmap.org/0/0/0.png" || exit 1
126+
127+
echo ""
128+
echo "Checking API endpoints..."
129+
130+
# Nominatim reverse geocoding API
131+
curl -f -s -o /dev/null -w "Nominatim API: %{http_code}\n" \
132+
-H "User-Agent: ElmFormToolkitDemo" \
133+
"https://nominatim.openstreetmap.org/reverse?format=json&lat=19.4326&lon=-99.1332&addressdetails=1" || exit 1
134+
135+
# Photon geocoding API
136+
curl -f -s -o /dev/null -w "Photon API: %{http_code}\n" \
137+
"https://photon.komoot.io/api?q=London&limit=5" || exit 1
138+
139+
echo ""
140+
echo "All dependencies and API endpoints are responding correctly!"

0 commit comments

Comments
 (0)