From 08aaf9f61790df240a7d2ba1b625588ff48656bb Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sun, 29 Oct 2023 18:24:02 +0100 Subject: [PATCH] Don't accept changes not made by humans --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9541d26..a638ea3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,6 +39,13 @@ jobs: run: composer update --optimize-autoloader --no-progress --ansi --no-interaction - name: Build run: ./bin/unipoints build + - name: Check built assets + if: ! startsWith(matrix.os, 'windows') + run: | + if ! git diff --exit-code --name-status; then + printf '\n\nPLEASE RUN\n\nbin/unipoints build\n' + exit 1 + fi - name: Check PHP coding style if: startsWith(matrix.os, 'ubuntu') && matrix.php-version == '8.2' run: composer run-script phpcs -- --ansi --no-interaction --dry-run --diff