fix(ci): update snapshots when needed

This commit is contained in:
Łukasz Mierzwa
2024-09-24 15:40:20 +01:00
committed by Łukasz Mierzwa
parent a8ac266767
commit e040d6c437
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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