aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJulien Déramond <[email protected]>2023-03-27 17:34:14 +0200
committerGitHub <[email protected]>2023-03-27 17:34:14 +0200
commit92f9dda263e4a80a8b9a60574af20f610b6c6fa8 (patch)
tree3f2d8aed41e8d7b942508ec5342c771b221b6f3c /.github/workflows
parentcad38efcaee09c209b13842dbccbdb4a4c933852 (diff)
downloadbootstrap-92f9dda263e4a80a8b9a60574af20f610b6c6fa8.tar.xz
bootstrap-92f9dda263e4a80a8b9a60574af20f610b6c6fa8.zip
Add a check for interpolation variables to node-sass workflow (#38283)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/node-sass.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/node-sass.yml b/.github/workflows/node-sass.yml
index fb4d4944c..d83e3e70f 100644
--- a/.github/workflows/node-sass.yml
+++ b/.github/workflows/node-sass.yml
@@ -34,3 +34,15 @@ jobs:
npx --package node-sass@latest node-sass --version
npx --package node-sass@latest node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/ -o dist-sass/css/
ls -Al dist-sass/css
+
+ # Check that there are no Sass variables (`$`)
+ - name: Check built CSS files
+ shell: bash
+ run: |
+ if [[ $(find dist-sass/css/ -name "*.css" | xargs grep -F "\$" | wc -l | bc) -eq 0 ]]; then
+ echo "All good, no Sass variables found"
+ exit 0
+ else
+ echo "Found Sass variables!"
+ exit 1
+ fi