|
95 | 95 | - name: Deploy to GitHub Pages |
96 | 96 | id: deployment |
97 | 97 | 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