From 8c6be282a530b14f80854766275f6a27f7dfa31e Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Sun, 8 Oct 2023 10:25:54 +0800 Subject: CI: make insta generate new snapshots in CI See https://github.com/mitsuhiko/insta/issues/411 --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46a953e..cc7ea17 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,6 +89,9 @@ jobs: # npcap is needed to run tests on Windows, so this is an unfortunate # sacrifice we have to make in the name of security if: (matrix.os != 'windows-latest') || (github.event_name != 'pull_request') + env: + # make insta generate new snapshots in CI + INSTA_UPDATE: new run: cargo insta test --color=never - name: Upload snapshots of failed tests -- cgit v1.2.3