From 30dbe5c9eeccb106afb2590dcb61f7a05ffbee14 Mon Sep 17 00:00:00 2001 From: Antoine Vinot Date: Thu, 23 Apr 2026 14:20:12 +0200 Subject: [PATCH] SQSCANGHA-138 Update dist and add ci test (#233) Co-authored-by: Jarek Potiuk --- .github/workflows/unit-tests.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 8c75dbe..75ad1a1 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -27,5 +27,16 @@ jobs: - name: Install dependencies run: npm ci + - name: Build + run: npm run build + + - name: Check dist/ is up-to-date + run: | + if ! git diff --exit-code dist/ || [ -n "$(git status --porcelain dist/)" ]; then + echo "::error::dist/ is out of date. Run 'npm run build' and commit the changes." + git status --short dist/ + exit 1 + fi + - name: Run tests run: npm test