You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 012d7b4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/workflows/template-ci.yml
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,32 @@ jobs:
58
58
# raising default_language_version is the regression to catch.
59
59
python3 -c "import sys,yaml; cfg=yaml.safe_load(open(sys.argv[1])); hs=[h for r in cfg['repos'] if 'shellcheck-py' in r['repo'] for h in r['hooks'] if h['id']=='shellcheck']; assert len(hs)==1, hs; v=hs[0].get('language_version'); assert v=='python3.12', f'shellcheck language_version is {v!r}'" "/tmp/out-$kind/.pre-commit-config.yaml"
60
60
done
61
+
# Repo settings as code is opt-in: the defaults carry none of it, so a
62
+
# `copier update --defaults` cannot push it into downstream repos.
63
+
for kind in app library; do
64
+
test ! -e "/tmp/out-$kind/scripts"
65
+
test ! -e "/tmp/out-$kind/.github/rulesets"
66
+
test ! -e "/tmp/out-$kind/.github/repo-settings.json"
67
+
done
68
+
# The applier is tested against a stubbed gh, here in the template repo
69
+
# (the file's path has copier syntax in it, so the test loads it by path).
0 commit comments