From 9dd77858fdcaed2ca8e11b310401677c63ce3685 Mon Sep 17 00:00:00 2001
From: Matthias <code@mjmair.com>
Date: Fri, 27 May 2022 20:05:40 +0200
Subject: [PATCH] make template matching simpler

---
 .github/workflows/qc_checks.yaml | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml
index bb5c1e117f..cf8ce3917b 100644
--- a/.github/workflows/qc_checks.yaml
+++ b/.github/workflows/qc_checks.yaml
@@ -108,14 +108,7 @@ jobs:
           invoke static
       - name: Check HTML Files
         run: |
-          npx markuplint InvenTree/build/templates/build/*.html
-          npx markuplint InvenTree/company/templates/company/*.html
-          npx markuplint InvenTree/order/templates/order/*.html
-          npx markuplint InvenTree/part/templates/part/*.html
-          npx markuplint InvenTree/stock/templates/stock/*.html
-          npx markuplint InvenTree/templates/*.html
-          npx markuplint InvenTree/templates/InvenTree/*.html
-          npx markuplint InvenTree/templates/InvenTree/settings/*.html
+          npx markuplint **/templates/*.html
 
   pre-commit:
     name: pre-commit rules
@@ -171,7 +164,7 @@ jobs:
 
   coverage:
     name: Sqlite + coverage
-    needs: ['javascript', 'html']
+    needs: ['javascript', 'html', 'pre-commit']
     runs-on: ubuntu-latest
 
     env:
@@ -215,7 +208,7 @@ jobs:
 
   postgres:
     name: Postgres
-    needs: ['javascript', 'html']
+    needs: ['javascript', 'html', 'pre-commit']
     runs-on: ubuntu-latest
     if: github.event_name == 'push'
 
@@ -274,7 +267,7 @@ jobs:
 
   mysql:
     name: MySql
-    needs: ['javascript', 'html']
+    needs: ['javascript', 'html', 'pre-commit']
     runs-on: ubuntu-latest
     if: github.event_name == 'push'