Skip to content

Commit

Permalink
Add CI check that only golden files exist under the golden directory
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Dec 13, 2023
1 parent 0fe8a2a commit b351b1b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,25 @@ jobs:
KEEP_WORKSPACE: 1
run: cabal test all

- # Delete golden files and regenerate them in the next step to ensure
# files that tests designate as golden files are actually golden files
# and can be generated.
name: Delete golden files
shell: bash
run: |
rm -rf cardano-cli/test/cardano-cli-golden/files/golden
- name: Run tests regenerate golden files
env:
# these two are msys2 env vars, they have no effect on non-msys2 installs.
MSYS2_PATH_TYPE: inherit
MSYSTEM: MINGW64
TMPDIR: ${{ runner.temp }}
TMP: ${{ runner.temp }}
KEEP_WORKSPACE: 1
CREATE_GOLDEN_FILES: 1
run: cabal test all

- name: "Tar artifacts"
shell: bash
run: |
Expand Down

0 comments on commit b351b1b

Please sign in to comment.