From 29a9fdf43014ab28e0ee2a8ef54b4141e5b68e9b Mon Sep 17 00:00:00 2001 From: Tommmaso Menga Date: Tue, 30 Jan 2024 17:11:28 +0100 Subject: [PATCH] feat(github-actions): add 'no new snapshots' check after tests --- .github/workflows/continuous-integration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 91dde0f632..9f6aeab7f9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -52,6 +52,8 @@ jobs: run: yarn test env: NODE_ENV: production + - name: 'Assert no new snapshots (run `yarn test --ci` if this fails)' + run: git diff --exit-code - name: Store coverage if: github.event_name == 'pull_request' uses: actions/upload-artifact@v4