From e040d6c4375993571c37abea92a79b069e1f5c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 24 Sep 2024 15:40:20 +0100 Subject: [PATCH] fix(ci): update snapshots when needed --- .github/workflows/node-maintenance.yml | 3 +++ ui/Makefile | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/node-maintenance.yml b/.github/workflows/node-maintenance.yml index 1c1229dd4..4512a1963 100644 --- a/.github/workflows/node-maintenance.yml +++ b/.github/workflows/node-maintenance.yml @@ -24,6 +24,9 @@ jobs: - name: Rebuild react app run: make -C ui build + - name: Update snapshots + run: make -C ui update-snapshots + - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v7.0.5 diff --git a/ui/Makefile b/ui/Makefile index 9123aa988..fa89cc0b5 100644 --- a/ui/Makefile +++ b/ui/Makefile @@ -34,6 +34,10 @@ build: dist/index.html test-js: $(NODE_PATH)/vite $(NODE_PATH)/jest CI=true NODE_OPTIONS="--unhandled-rejections=strict" npm test -- --coverage +.PHONY: update-snapshots +update-snapshots: $(NODE_PATH)/vite $(NODE_PATH)/jest + CI=true NODE_OPTIONS="--unhandled-rejections=strict" npm test -- -u + .PHONY: lint-js lint-js: $(NODE_PATH)/eslint @rm -fr node_modules/.cache/eslint-loader