From 2d9ff6ea909c4922e9020a94e8d739d2196fa232 Mon Sep 17 00:00:00 2001 From: Roni Laukkarinen Date: Sun, 10 Nov 2024 13:19:54 +0200 Subject: [PATCH] Add unit test to test for CSS syntax errors #141 --- .github/workflows/styles.yml | 11 ++++++++++- CHANGELOG.md | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/styles.yml b/.github/workflows/styles.yml index 867a09f..10c3cb9 100644 --- a/.github/workflows/styles.yml +++ b/.github/workflows/styles.yml @@ -33,7 +33,16 @@ jobs: @ronilaukkarinen/stylelint-a11y@^1.2.7 \ @ronilaukkarinen/stylelint-declaration-strict-value@^1.9.2 \ @ronilaukkarinen/stylelint-value-no-unknown-custom-properties@^4.0.1 \ - postcss@8.4.21 + postcss@8.4.21 \ + postcss-cli@^10.1.0 + - name: Run stylelint run: | npx stylelint *.css --max-warnings 0 --config .stylelintrc + + - name: Validate CSS syntax + run: | + for file in *.css; do + echo "Validating $file" + npx postcss "$file" --parser postcss-safe-parser + done diff --git a/CHANGELOG.md b/CHANGELOG.md index cae98d9..5b856af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 2.0.5rc: 2024-11-10 + +* Add unit test to test for CSS syntax errors #141 + ### 2.0.4: 2024-10-18 * Fix hover bubble position if the button has counter