Use prettier for SCSS (#3895)
[GitHub/WoltLab/WCF.git] / .github / workflows / codestyle.yml
index 0bc896dc9fe38961f7b4279daaa5383536e28813..efe2ce387e90d7b159f197d0e263aa6346caa016 100644 (file)
@@ -35,3 +35,18 @@ jobs:
       run: |
         git checkout -- package-lock.json
         git diff --exit-code
+  scss:
+    name: SCSS Prettier
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - run: npm install
+    - name: Run prettier
+      run: |
+        shopt -s globstar
+        npx prettier -w wcfsetup/install/files/style/**/*.scss
+    - run: echo "::add-matcher::.github/diff.json"
+    - name: Show diff
+      run: |
+        git checkout -- package-lock.json
+        git diff --exit-code