Skip to content

Commit

Permalink
enable unit tests to run on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed Apr 8, 2024
1 parent 2c94dca commit df14c0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ vars:
SNAPSHOT_DIR: snapshot
CHANGELOG: CHANGELOG.md
NEXT_VERSION: VERSION
MAKEDIR_P: 'python -c "import sys; import os; os.makedirs(sys.argv[1], exist_ok=True)"'

tasks:

Expand Down Expand Up @@ -127,7 +128,7 @@ tasks:
# unit test coverage threshold (in % coverage)
COVERAGE_THRESHOLD: 45
cmds:
- cmd: "mkdir -p {{ .TMP_DIR }}"
- cmd: "{{ .MAKEDIR_P }} {{ .TMP_DIR }}"
silent: true
- "go test -coverprofile {{ .TMP_DIR }}/unit-coverage-details.txt {{ .TEST_PKGS }}"
- cmd: ".github/scripts/coverage.py {{ .COVERAGE_THRESHOLD }} {{ .TMP_DIR }}/unit-coverage-details.txt"
Expand Down

0 comments on commit df14c0e

Please sign in to comment.