diff --git a/.github/workflows/check-shared-css.yml b/.github/workflows/check-shared-css.yml new file mode 100644 index 0000000..234620c --- /dev/null +++ b/.github/workflows/check-shared-css.yml @@ -0,0 +1,34 @@ +name: Shared CSS coherence +on: + push: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Verify shared CSS blocks are identical + run: | + python3 -c " + import glob, sys + + blocks = {} + for f in sorted(glob.glob('**/*.html', recursive=True)): + text = open(f).read() + if '', 1)[0] + + if len(blocks) < 2: + print(f'Need at least 2 files with + +