ci: make sure golden files are actually up to date (#15989)

This commit is contained in:
Mathias Fredriksson
2025-01-02 11:05:11 +02:00
committed by GitHub
parent 0e26a665ae
commit 7152f4a740
11 changed files with 37 additions and 166 deletions
+9
View File
@@ -271,6 +271,15 @@ jobs:
# coderd/rbac/object_gen.go:1:1: syntax error: package statement must be first
run: "make --output-sync -B gen"
- name: make update-golden-files
run: |
make clean/golden-files
# Notifications require DB, we could start a DB instance here but
# let's just restore for now.
git checkout -- coderd/notifications/testdata/rendered-templates
# As above, skip `-j` flag.
make --output-sync -B update-golden-files
- name: Check for unstaged files
run: ./scripts/check_unstaged.sh