diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 1511ed9..7f4a17b 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -21,5 +21,16 @@ jobs: - name: Install dependencies run: npm ci + - name: Build + run: npm run build + + - name: Check dist/ is up-to-date + run: | + if [ -n "$(git diff --name-only)" ]; then + echo "::error::dist/ is out of date. Run 'npm run build' and commit the changes." + git diff --name-only + exit 1 + fi + - name: Run tests run: npm test