mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
update check_examples
This commit is contained in:
6
.github/check_examples.py
vendored
6
.github/check_examples.py
vendored
@@ -2,6 +2,8 @@ import json
|
|||||||
import glob
|
import glob
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
fail = 0
|
||||||
|
|
||||||
for package in glob.glob("**/package.json",recursive=True):
|
for package in glob.glob("**/package.json",recursive=True):
|
||||||
if "node_modules" in package:
|
if "node_modules" in package:
|
||||||
continue
|
continue
|
||||||
@@ -20,4 +22,6 @@ for package in glob.glob("**/package.json",recursive=True):
|
|||||||
for match in matches:
|
for match in matches:
|
||||||
if matches[0] == "latest" or matches[0] != version:
|
if matches[0] == "latest" or matches[0] != version:
|
||||||
print(html,"should be",version,"was",matches)
|
print(html,"should be",version,"was",matches)
|
||||||
exit(1)
|
fail = 1
|
||||||
|
|
||||||
|
exit(fail)
|
||||||
|
|||||||
Reference in New Issue
Block a user